From b778fb6a02de660f34b5bddcabbe2f56ee5a75ff Mon Sep 17 00:00:00 2001 From: Siwat Sirichai Date: Fri, 21 Jun 2024 21:02:11 +0700 Subject: [PATCH] Update DigitalInputCard.cpp --- .../lib/ESPMegaPRO/DigitalInputCard.cpp | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/ESPMegaPRO-OS-SDK/lib/ESPMegaPRO/DigitalInputCard.cpp b/ESPMegaPRO-OS-SDK/lib/ESPMegaPRO/DigitalInputCard.cpp index 5103c9b..0cf87f0 100644 --- a/ESPMegaPRO-OS-SDK/lib/ESPMegaPRO/DigitalInputCard.cpp +++ b/ESPMegaPRO-OS-SDK/lib/ESPMegaPRO/DigitalInputCard.cpp @@ -167,20 +167,6 @@ void DigitalInputCard::handlePinChange(int pin, uint8_t ¤tBuffer, 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)); - // } - // } - } /**