Update DigitalInputCard.cpp
This commit is contained in:
parent
221d8e59f5
commit
b778fb6a02
|
@ -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));
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue