maybe lua freezes proteus h7 after 7 seconds of run #3539
This commit is contained in:
parent
7032c06066
commit
d3124ff802
|
@ -5,4 +5,4 @@ rem
|
|||
set command=%1
|
||||
echo "Command: [%command%]"
|
||||
|
||||
java -jar ../java_console_binary/rusefi_console.jar %command%
|
||||
java -jar ../java_console_binary/rusefi_console.jar send_command %command%
|
||||
|
|
|
@ -83,6 +83,14 @@ public class ConsoleTools {
|
|||
registerTool("local_proxy", ConsoleTools::localProxy, "Detect rusEFI ECU and proxy serial <> TCP");
|
||||
|
||||
registerTool("detect", ConsoleTools::detect, "Find attached rusEFI");
|
||||
registerTool("send_command", new ConsoleTool() {
|
||||
@Override
|
||||
public void runTool(String[] args) throws Exception {
|
||||
String command = args[1];
|
||||
System.out.println("Sending command " + command);
|
||||
sendCommand(command);
|
||||
}
|
||||
}, "Sends command specified as second argument");
|
||||
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);
|
||||
|
|
Loading…
Reference in New Issue