mirror of https://github.com/rusefi/rusefi-1.git
Sometimes legacy DFU does not work #1477
This commit is contained in:
parent
63ab889e2f
commit
cd7a489ea9
|
@ -3,6 +3,6 @@ package com.rusefi;
|
||||||
import java.util.concurrent.atomic.AtomicReference;
|
import java.util.concurrent.atomic.AtomicReference;
|
||||||
|
|
||||||
public class rusEFIVersion {
|
public class rusEFIVersion {
|
||||||
public static final int CONSOLE_VERSION = 20200608;
|
public static final int CONSOLE_VERSION = 20200609;
|
||||||
public static AtomicReference<String> firmwareVersion = new AtomicReference<>("N/A");
|
public static AtomicReference<String> firmwareVersion = new AtomicReference<>("N/A");
|
||||||
}
|
}
|
||||||
|
|
|
@ -98,8 +98,10 @@ public class DfuFlasher {
|
||||||
String errorResponse = ExecHelper.executeCommand(FirmwareFlasher.BINARY_LOCATION,
|
String errorResponse = ExecHelper.executeCommand(FirmwareFlasher.BINARY_LOCATION,
|
||||||
FirmwareFlasher.BINARY_LOCATION + File.separator + getDfuCommand(),
|
FirmwareFlasher.BINARY_LOCATION + File.separator + getDfuCommand(),
|
||||||
DFU_BINARY, wnd, stdout);
|
DFU_BINARY, wnd, stdout);
|
||||||
// looks like sometimes we are not catching the last line of the response? 'Upgrade' happens before 'Verify'
|
if (stdout.toString().contains("0x12340005")) {
|
||||||
if (stdout.toString().contains("Verify successful") || stdout.toString().contains("Upgrade successful")) {
|
wnd.appendMsg("Driver issue? Maybe driver conflict with STM32Cube? rusEFI currently uses older incompatible driver");
|
||||||
|
} 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!");
|
wnd.appendMsg("SUCCESS!");
|
||||||
} else {
|
} else {
|
||||||
if (stdout.length() == 0 && errorResponse.length() == 0) {
|
if (stdout.length() == 0 && errorResponse.length() == 0) {
|
||||||
|
|
Loading…
Reference in New Issue