trying to help HW CI
This commit is contained in:
parent
1f27cbcf42
commit
3514f927ed
|
@ -889,11 +889,11 @@ static void enableOrDisable(const char *param, bool isEnabled) {
|
||||||
engineConfiguration->canReadEnabled = isEnabled;
|
engineConfiguration->canReadEnabled = isEnabled;
|
||||||
} else if (strEqualCaseInsensitive(param, "can_write")) {
|
} else if (strEqualCaseInsensitive(param, "can_write")) {
|
||||||
engineConfiguration->canWriteEnabled = isEnabled;
|
engineConfiguration->canWriteEnabled = isEnabled;
|
||||||
} else if (strEqualCaseInsensitive(param, "injection")) {
|
} else if (strEqualCaseInsensitive(param, CMD_INJECTION)) {
|
||||||
engineConfiguration->isInjectionEnabled = isEnabled;
|
engineConfiguration->isInjectionEnabled = isEnabled;
|
||||||
} else if (strEqualCaseInsensitive(param, "trigger_details")) {
|
} else if (strEqualCaseInsensitive(param, "trigger_details")) {
|
||||||
engineConfiguration->verboseTriggerSynchDetails = isEnabled;
|
engineConfiguration->verboseTriggerSynchDetails = isEnabled;
|
||||||
} else if (strEqualCaseInsensitive(param, "ignition")) {
|
} else if (strEqualCaseInsensitive(param, CMD_IGNITION)) {
|
||||||
engineConfiguration->isIgnitionEnabled = isEnabled;
|
engineConfiguration->isIgnitionEnabled = isEnabled;
|
||||||
} else if (strEqualCaseInsensitive(param, CMD_SELF_STIMULATION)) {
|
} else if (strEqualCaseInsensitive(param, CMD_SELF_STIMULATION)) {
|
||||||
engine->directSelfStimulation = isEnabled;
|
engine->directSelfStimulation = isEnabled;
|
||||||
|
|
|
@ -8,8 +8,7 @@ import com.rusefi.io.CommandQueue;
|
||||||
import com.rusefi.waves.EngineReport;
|
import com.rusefi.waves.EngineReport;
|
||||||
|
|
||||||
import static com.devexperts.logging.Logging.getLogging;
|
import static com.devexperts.logging.Logging.getLogging;
|
||||||
import static com.rusefi.IoUtil.getEnableCommand;
|
import static com.rusefi.IoUtil.*;
|
||||||
import static com.rusefi.IoUtil.sleepSeconds;
|
|
||||||
import static com.rusefi.waves.EngineReport.isCloseEnough;
|
import static com.rusefi.waves.EngineReport.isCloseEnough;
|
||||||
|
|
||||||
public class BaseTest {
|
public class BaseTest {
|
||||||
|
@ -60,6 +59,11 @@ public class BaseTest {
|
||||||
log.info("AUTOTEST setEngineType " + type);
|
log.info("AUTOTEST setEngineType " + type);
|
||||||
currentEngineType = type;
|
currentEngineType = type;
|
||||||
// sendCommand(CMD_PINS);
|
// sendCommand(CMD_PINS);
|
||||||
|
sendCommand(getDisableCommand(Fields.CMD_INJECTION));
|
||||||
|
sendCommand(getDisableCommand(Fields.CMD_IGNITION));
|
||||||
|
// changing engine type while engine is running does not work well - we rightfully
|
||||||
|
// get invalid configuration critical errors
|
||||||
|
sleepSeconds(1);
|
||||||
sendCommand("set " + Fields.CMD_ENGINE_TYPE + " " + type, COMPLEX_COMMAND_RETRY, Timeouts.SET_ENGINE_TIMEOUT);
|
sendCommand("set " + Fields.CMD_ENGINE_TYPE + " " + type, COMPLEX_COMMAND_RETRY, Timeouts.SET_ENGINE_TIMEOUT);
|
||||||
// TODO: document the reason for this sleep?!
|
// TODO: document the reason for this sleep?!
|
||||||
sleepSeconds(3);
|
sleepSeconds(3);
|
||||||
|
|
Loading…
Reference in New Issue