mirror of
https://github.com/ReneLergner/WPinternals.git
synced 2026-06-17 21:00:10 +10:00
Fixing Sahara issues & .NET Framework project files
This commit is contained in:
@@ -610,6 +610,12 @@ namespace WPinternals
|
||||
{
|
||||
FailedToStartProgrammer = true;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
LogFile.Log("An unexpected error happened", LogType.FileAndConsole);
|
||||
LogFile.Log(ex.GetType().ToString(), LogType.FileAndConsole);
|
||||
FailedToStartProgrammer = true;
|
||||
}
|
||||
}
|
||||
|
||||
if (ProgrammerPath == null || FailedToStartProgrammer)
|
||||
@@ -627,6 +633,12 @@ namespace WPinternals
|
||||
{
|
||||
Timeout = true;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
LogFile.Log("An unexpected error happened", LogType.FileAndConsole);
|
||||
LogFile.Log(ex.GetType().ToString(), LogType.FileAndConsole);
|
||||
FailedToStartProgrammer = true;
|
||||
}
|
||||
}
|
||||
if (!AutoEmergencyReset || Timeout)
|
||||
{
|
||||
@@ -1287,6 +1299,12 @@ namespace WPinternals
|
||||
{
|
||||
Timeout = true;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
LogFile.Log("An unexpected error happened", LogType.FileAndConsole);
|
||||
LogFile.Log(ex.GetType().ToString(), LogType.FileAndConsole);
|
||||
FailedToStartProgrammer = true;
|
||||
}
|
||||
}
|
||||
if (!AutoEmergencyReset || Timeout)
|
||||
{
|
||||
@@ -1540,6 +1558,12 @@ namespace WPinternals
|
||||
{
|
||||
Timeout = true;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
LogFile.Log("An unexpected error happened", LogType.FileAndConsole);
|
||||
LogFile.Log(ex.GetType().ToString(), LogType.FileAndConsole);
|
||||
FailedToStartProgrammer = true;
|
||||
}
|
||||
}
|
||||
if (!AutoEmergencyReset || Timeout)
|
||||
{
|
||||
|
||||
@@ -149,6 +149,7 @@ namespace WPinternals
|
||||
|
||||
void LumiaNotifier_Arrival(object sender, USBEvent e)
|
||||
{
|
||||
LogFile.Log("A device arrived: " + e.DevicePath, LogType.FileOnly);
|
||||
try
|
||||
{
|
||||
if ((e.DevicePath.IndexOf("VID_0421&PID_0660&MI_04", StringComparison.OrdinalIgnoreCase) >= 0) ||
|
||||
|
||||
Reference in New Issue
Block a user