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
+2 -2
View File
@@ -310,9 +310,9 @@ namespace WPinternals
int count = 0;
do
{
count++;
try
{
count++;
byte[] DoneResponse = Serial.SendCommand(DoneCommand, new byte[] { 0x06, 0x00, 0x00, 0x00 });
Started = true;
}
@@ -320,7 +320,7 @@ namespace WPinternals
{
LogFile.Log("Problem while starting programmer. Attempting again.", LogType.FileAndConsole);
}
} while (!Started || count < 3);
} while (!Started && count < 3);
if (count >= 3 && !Started)
{
LogFile.Log("Maximum number of attempts to start the programmer exceeded.", LogType.FileAndConsole);