QC control mode to crash if RPM = 0 and to mark successful 3 minute test with self-stimulation RPM increase #1871

This commit is contained in:
rusefi 2020-10-11 22:57:31 -04:00
parent 1c84b0dd9f
commit 996806d710
1 changed files with 1 additions and 1 deletions

View File

@ -212,7 +212,7 @@ void Engine::periodicSlowCallback(DECLARE_ENGINE_PARAMETER_SIGNATURE) {
if (secondsNow > 2 && secondsNow < 180) {
assertCloseTo("RPM", Sensor::get(SensorType::Rpm).Value, HW_CHECK_RPM);
} else if (!hasFirmwareError() && secondsNow > 180) {
static isHappyTest = false;
static bool isHappyTest = false;
if (!isHappyTest) {
setTriggerEmulatorRPM(5 * HW_CHECK_RPM);
scheduleMsg(&engineLogger, "TEST PASSED");