better message

This commit is contained in:
rusefi 2020-03-31 16:02:13 -04:00
parent 44871c162c
commit 872f32c994
1 changed files with 2 additions and 2 deletions

View File

@ -260,7 +260,7 @@ void onStartStopButtonToggle(DECLARE_ENGINE_PARAMETER_SIGNATURE) {
bool wasStarterEngaged = enginePins.starterControl.getAndSet(1); bool wasStarterEngaged = enginePins.starterControl.getAndSet(1);
if (!wasStarterEngaged) { if (!wasStarterEngaged) {
scheduleMsg(&logger, "Let's crank this engine!"); scheduleMsg(&logger, "Let's crank this engine for up to %dseconds!", CONFIG(startCrankingDuration));
} }
} else if (engine->rpmCalculator.isRunning(PASS_ENGINE_PARAMETER_SIGNATURE)) { } else if (engine->rpmCalculator.isRunning(PASS_ENGINE_PARAMETER_SIGNATURE)) {
scheduleMsg(&logger, "Let's stop this engine!"); scheduleMsg(&logger, "Let's stop this engine!");
@ -300,7 +300,7 @@ static void slowStartStopButtonCallback(DECLARE_ENGINE_PARAMETER_SIGNATURE) {
if (getTimeNowNt() - engine->startStopStateLastPushTime > NT_PER_SECOND * CONFIG(startCrankingDuration)) { if (getTimeNowNt() - engine->startStopStateLastPushTime > NT_PER_SECOND * CONFIG(startCrankingDuration)) {
bool wasStarterEngaged = enginePins.starterControl.getAndSet(0); bool wasStarterEngaged = enginePins.starterControl.getAndSet(0);
if (wasStarterEngaged) { if (wasStarterEngaged) {
scheduleMsg(&logger, "Cranking timeout"); scheduleMsg(&logger, "Cranking timeout %dseconds", CONFIG(startCrankingDuration));
} }
engine->startStopStateLastPushTime = 0; engine->startStopStateLastPushTime = 0;
} }