console to handle Matching not good #3232

This commit is contained in:
rusefillc 2021-09-11 16:07:02 -04:00
parent a503acb138
commit 4f0d336ccc
2 changed files with 6 additions and 2 deletions

View File

@ -6,7 +6,7 @@ import java.net.URL;
import java.util.concurrent.atomic.AtomicReference;
public class rusEFIVersion {
public static final int CONSOLE_VERSION = 20210906;
public static final int CONSOLE_VERSION = 20210911;
public static AtomicReference<String> firmwareVersion = new AtomicReference<>("N/A");
public static long classBuildTimeMillis() {

View File

@ -105,7 +105,11 @@ public class DfuFlasher {
}
wnd.appendMsg(s);
}, stdout);
if (stdout.toString().contains("Verify successful") || stdout.toString().contains("Upgrade successful")) {
if (stdout.toString().contains("Matching not good")) {
// looks like sometimes we are not catching the last line of the response? 'Upgrade' happens before 'Verify'
wnd.appendMsg("VERIFICATION ERROR maybe nDBANK issue?");
wnd.appendMsg("https://github.com/rusefi/rusefi/wiki/HOWTO-nDBANK");
} else if (stdout.toString().contains("Verify successful") || stdout.toString().contains("Upgrade successful")) {
// looks like sometimes we are not catching the last line of the response? 'Upgrade' happens before 'Verify'
wnd.appendMsg("SUCCESS!");
} else {