From 5e448a79411bbd3ac669b155c5d31e4bbbd87d04 Mon Sep 17 00:00:00 2001 From: rusefi Date: Tue, 5 Feb 2019 21:05:45 -0500 Subject: [PATCH] refactoring: same condition twice? --- firmware/console/status_loop.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/firmware/console/status_loop.cpp b/firmware/console/status_loop.cpp index 808ef31042..ddba1f6134 100644 --- a/firmware/console/status_loop.cpp +++ b/firmware/console/status_loop.cpp @@ -623,7 +623,7 @@ static void blinkingThread(void *arg) { } #endif - if (!hasFirmwareError() && !hasFirmwareErrorFlag) { + if (!hasFirmwareError()) { enginePins.communicationLedPin.setValue(0); } enginePins.warningLedPin.setValue(0);