mirror of https://github.com/rusefi/rusefi.git
parent
a3a1560e05
commit
c50be9ecdd
|
@ -102,11 +102,11 @@ bool ButtonDebounce::readPinState2(bool valueWithinThreshold) {
|
||||||
return valueWithinThreshold;
|
return valueWithinThreshold;
|
||||||
}
|
}
|
||||||
bool value = getPhysicalState();
|
bool value = getPhysicalState();
|
||||||
efiPrintf("%s value %d", m_name, value);
|
// efiPrintf("[debounce] %s value %d", m_name, value);
|
||||||
// Invert
|
// Invert
|
||||||
if (active_mode == PI_PULLUP) {
|
if (active_mode == PI_PULLUP) {
|
||||||
value = !value;
|
value = !value;
|
||||||
efiPrintf("%s inverted %d", m_name, value);
|
// efiPrintf("[debounce] %s inverted %d", m_name, value);
|
||||||
}
|
}
|
||||||
if (value) {
|
if (value) {
|
||||||
timeLast.reset();
|
timeLast.reset();
|
||||||
|
|
Loading…
Reference in New Issue