From 9a85ac9922aef85f1c63a1cf00c8e7557706c628 Mon Sep 17 00:00:00 2001 From: rusefi Date: Wed, 8 May 2024 21:44:37 -0400 Subject: [PATCH] kind of dead code: no one cares --- firmware/console/status_loop.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/firmware/console/status_loop.cpp b/firmware/console/status_loop.cpp index 3bd756cbf1..6351d9e503 100644 --- a/firmware/console/status_loop.cpp +++ b/firmware/console/status_loop.cpp @@ -274,8 +274,6 @@ class CommunicationBlinkingTask : public PeriodicTimerController { void PeriodicTask() override { counter++; - bool lowVBatt = Sensor::getOrZero(SensorType::BatteryVoltage) < LOW_VBATT; - if (counter == 1) { // first invocation of BlinkingTask setAllLeds(1); @@ -291,9 +289,7 @@ extern int totalLoggedBytes; } #endif // HW_CHECK_SD - if (!lowVBatt) { - enginePins.warningLedPin.setValue(0); - } + enginePins.warningLedPin.setValue(0); } else { #define BLINKING_PERIOD_MS 33 @@ -327,7 +323,7 @@ extern int totalLoggedBytes; //#endif // HW_CHECK_MODE #if EFI_ENGINE_CONTROL - if (lowVBatt || isTriggerErrorNow()) { + if (isTriggerErrorNow()) { // todo: at the moment warning codes do not affect warning LED?! enginePins.warningLedPin.setValue(1); }