flash_reboot_dfu.bat feedback (#3300)

This commit is contained in:
rusefillc 2021-10-06 11:35:21 -04:00
parent 3ff5745b45
commit a6f7cc0d74
1 changed files with 8 additions and 1 deletions

View File

@ -84,7 +84,14 @@ public class ConsoleTools {
registerTool("detect", ConsoleTools::detect, "Find attached rusEFI");
registerTool("reboot_ecu", args -> sendCommand(Fields.CMD_REBOOT), "Sends a command to reboot rusEFI controller.");
registerTool(Fields.CMD_REBOOT_DFU, args -> sendCommand(Fields.CMD_REBOOT_DFU), "Sends a command to switch rusEFI controller into DFU mode.");
registerTool(Fields.CMD_REBOOT_DFU, args -> {
sendCommand(Fields.CMD_REBOOT_DFU);
/**
* AndreiKA reports that auto-detect fails to interrupt communication threads while in native code
* See https://github.com/rusefi/rusefi/issues/3300
*/
System.exit(0);
}, "Sends a command to switch rusEFI controller into DFU mode.");
}
private static void localProxy(String[] strings) throws IOException {