Update knx_facade.h

attachInterrup on CHANGE for progbutton detection
This commit is contained in:
rueckix 2022-05-29 14:57:23 +02:00 committed by GitHub
parent 840615ca5c
commit b6953320d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -264,9 +264,9 @@ template <class P, class B> class KnxFacade : private SaveRestore
{
// Workaround for https://github.com/arduino/ArduinoCore-samd/issues/587
#if (ARDUINO_API_VERSION >= 10200)
attachInterrupt(_buttonPin, _progButtonISRFuncPtr, (PinStatus)_buttonPinInterruptOn);
attachInterrupt(_buttonPin, _progButtonISRFuncPtr, (PinStatus)CHANGE);
#else
attachInterrupt(_buttonPin, _progButtonISRFuncPtr, _buttonPinInterruptOn);
attachInterrupt(_buttonPin, _progButtonISRFuncPtr, CHANGE);
#endif
}