From 704db4dd890e5e5c4abe078099c4bbdedc57bafc Mon Sep 17 00:00:00 2001 From: Andrey Date: Wed, 6 Sep 2023 16:59:06 -0400 Subject: [PATCH] only:small can board --- firmware/controllers/actuators/fan_control.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/firmware/controllers/actuators/fan_control.cpp b/firmware/controllers/actuators/fan_control.cpp index 5dcf950486..292a667f83 100644 --- a/firmware/controllers/actuators/fan_control.cpp +++ b/firmware/controllers/actuators/fan_control.cpp @@ -7,8 +7,13 @@ bool FanController::getState(bool acActive, bool lastState) { auto clt = Sensor::get(SensorType::Clt); +#if EFI_SHAFT_POSITION_INPUT cranking = engine->rpmCalculator.isCranking(); notRunning = !engine->rpmCalculator.isRunning(); +#else + cranking = false; + notRunning = true; +#endif disabledWhileEngineStopped = notRunning && disableWhenStopped(); brokenClt = !clt;