From b856e5306d5254712dbd4fb463c84dc3c4031c32 Mon Sep 17 00:00:00 2001 From: rusefi Date: Wed, 8 Nov 2023 23:31:40 -0500 Subject: [PATCH] Something kia rio starter 4chan #5701 only:alphax-4chan_f7 --- firmware/hw_layer/debounce.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/firmware/hw_layer/debounce.cpp b/firmware/hw_layer/debounce.cpp index d039e68a22..51fc1d1a32 100644 --- a/firmware/hw_layer/debounce.cpp +++ b/firmware/hw_layer/debounce.cpp @@ -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();