Fixing Sahara issues & .NET Framework project files

This commit is contained in:
Gustave Monce
2019-12-25 13:41:06 +01:00
parent b8d63d1a11
commit fa896b7c39
15 changed files with 1587 additions and 11 deletions
+24
View File
@@ -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)
{
+1
View File
@@ -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) ||