Starter seems to be engaged forever #1965
This commit is contained in:
parent
c52c6f45c9
commit
4e94324e4f
|
@ -103,12 +103,10 @@ bool ButtonDebounce::readPinState() {
|
||||||
#else
|
#else
|
||||||
storedValue = false;
|
storedValue = false;
|
||||||
#endif
|
#endif
|
||||||
#if EFI_PROD_CODE
|
|
||||||
// Invert
|
// Invert
|
||||||
if (getInputMode(active_mode) == PAL_MODE_INPUT_PULLUP) {
|
if (active_mode == PI_PULLUP) {
|
||||||
storedValue = !storedValue;
|
storedValue = !storedValue;
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
if (storedValue) {
|
if (storedValue) {
|
||||||
timeLast = timeNow;
|
timeLast = timeNow;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue