debounce unintended auto-increment bug (was: Proteus TCU gear shift configuration) #1927
undoing brain fart
This commit is contained in:
parent
75a77b06f4
commit
ee01be3fd2
|
@ -97,11 +97,6 @@ bool ButtonDebounce::readPinState() {
|
||||||
// storedValue is a class variable, so it needs to be reset.
|
// 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,
|
// 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,
|
// 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;
|
storedValue = false;
|
||||||
#if EFI_PROD_CODE || EFI_UNIT_TEST
|
#if EFI_PROD_CODE || EFI_UNIT_TEST
|
||||||
|
|
Loading…
Reference in New Issue