Something kia rio starter 4chan #5701

only:alphax-4chan_f7
This commit is contained in:
rusefi 2023-11-08 23:31:40 -05:00
parent ec6e711745
commit b856e5306d
1 changed files with 2 additions and 0 deletions

View File

@ -108,9 +108,11 @@ bool ButtonDebounce::readPinState() {
// but when a method is implemented to actually get the pin's state,
// for example to implement long button presses, it will be needed.
storedValue = getPhysicalState();
efiPrintf("%s getPhysicalState %d", m_name, storedValue);
// Invert
if (active_mode == PI_PULLUP) {
storedValue = !storedValue;
efiPrintf("%s inverted %d", m_name, storedValue);
}
if (storedValue) {
timeLast.reset();