functional testing should not be that darn slow #1076

This commit is contained in:
rusefi 2019-12-21 22:07:50 -05:00
parent 609865da0f
commit 2332d9340b
1 changed files with 5 additions and 2 deletions

View File

@ -47,6 +47,7 @@ public class AutoTest {
bp.burn(Logger.CONSOLE); bp.burn(Logger.CONSOLE);
sendCommand(getDisableCommand(Fields.CMD_TRIGGER_HW_INPUT)); sendCommand(getDisableCommand(Fields.CMD_TRIGGER_HW_INPUT));
sendCommand(getEnableCommand(Fields.CMD_FUNCTIONAL_TEST_MODE));
testCustomEngine(); testCustomEngine();
testMazdaMiata2003(); testMazdaMiata2003();
test2003DodgeNeon(); test2003DodgeNeon();
@ -135,10 +136,12 @@ public class AutoTest {
} }
static void setEngineType(int type) { static void setEngineType(int type) {
sendCommand(CMD_PINS); FileLog.MAIN.logLine("AUTOTEST setEngineType " + type);
// sendCommand(CMD_PINS);
currentEngineType = type; currentEngineType = type;
sendCommand("set " + Fields.CMD_ENGINE_TYPE + " " + type, COMPLEX_COMMAND_RETRY, 30); sendCommand("set " + Fields.CMD_ENGINE_TYPE + " " + type, COMPLEX_COMMAND_RETRY, 30);
sleep(10); // TODO: document the reason for this sleep?!
sleep(1);
sendCommand(getEnableCommand("self_stimulation")); sendCommand(getEnableCommand("self_stimulation"));
} }