Starter seems to be engaged forever #1965

This commit is contained in:
rusefillc 2020-11-18 21:45:17 -05:00
parent b41df605b4
commit 9f94205b2b
1 changed files with 1 additions and 3 deletions

View File

@ -103,12 +103,10 @@ bool ButtonDebounce::readPinState() {
#else
storedValue = false;
#endif
#if EFI_PROD_CODE
// Invert
if (getInputMode(active_mode) == PAL_MODE_INPUT_PULLUP) {
if (active_mode == PI_PULLUP) {
storedValue = !storedValue;
}
#endif
if (storedValue) {
timeLast = timeNow;
}