From ee01be3fd2218ef8bfb3efbd5abd3212149163f3 Mon Sep 17 00:00:00 2001 From: rusefi Date: Sat, 7 Nov 2020 00:43:42 -0500 Subject: [PATCH] debounce unintended auto-increment bug (was: Proteus TCU gear shift configuration) #1927 undoing brain fart --- firmware/hw_layer/debounce.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/firmware/hw_layer/debounce.cpp b/firmware/hw_layer/debounce.cpp index daa4da40c9..09095a1368 100644 --- a/firmware/hw_layer/debounce.cpp +++ b/firmware/hw_layer/debounce.cpp @@ -97,12 +97,7 @@ bool ButtonDebounce::readPinState() { // storedValue is a class variable, so it needs to be reset. // We don't actually need it to be a class variable in this method, // but when a method is implemented to actually get the pin's state, - ButtonDebounce *listItem = s_firstDebounce; - while (listItem != nullptr) { - listItem->stopConfiguration(); - listItem = listItem->nextDebounce; - } - // for example to implement long button presses, it will be needed. + // for example to implement long button presses, it will be needed. storedValue = false; #if EFI_PROD_CODE || EFI_UNIT_TEST storedValue = efiReadPin(active_pin);