undoing noise

only:proteus_f7
This commit is contained in:
rusefillc 2023-11-16 22:36:38 -05:00
parent a3a1560e05
commit c50be9ecdd
1 changed files with 2 additions and 2 deletions

View File

@ -102,11 +102,11 @@ bool ButtonDebounce::readPinState2(bool valueWithinThreshold) {
return valueWithinThreshold;
}
bool value = getPhysicalState();
efiPrintf("%s value %d", m_name, value);
// efiPrintf("[debounce] %s value %d", m_name, value);
// Invert
if (active_mode == PI_PULLUP) {
value = !value;
efiPrintf("%s inverted %d", m_name, value);
// efiPrintf("[debounce] %s inverted %d", m_name, value);
}
if (value) {
timeLast.reset();