Update DigitalInputCard.cpp

This commit is contained in:
Siwat Sirichai 2024-06-21 21:02:11 +07:00
parent 221d8e59f5
commit b778fb6a02
1 changed files with 0 additions and 14 deletions

View File

@ -167,20 +167,6 @@ void DigitalInputCard::handlePinChange(int pin, uint8_t &currentBuffer, uint8_t
} }
} }
// // Handle Bank B
// if (((previousBuffer >> (15 - pin)) & 1) != ((currentBuffer >> (15 - pin)) & 1))
// {
// if (millis() - lastDebounceTime[pin] > debounceTime[pin])
// {
// lastDebounceTime[pin] = millis();
// previousBuffer ^= (-((currentBuffer >> (15 - pin)) & 1) ^ previousBuffer) & (1UL << (15 - pin));
// for (const auto& callback : callbacks)
// callback.second(virtualPin, ((currentBuffer >> (15 - pin)) & 1));
// }
// }
} }
/** /**