mirror of
https://github.com/thelsing/knx.git
synced 2025-02-23 00:15:35 +01:00
Fix ambiguous call to attachInterrupt (#118)
* Fix ambiguous call to attachInterrupt in new SAMD arduino core * select attachInterrupt signature based on Arduino version
This commit is contained in:
parent
73df7fd28c
commit
d46b51fd4f
@ -222,7 +222,12 @@ template <class P, class B> class KnxFacade : private SaveRestore
|
|||||||
|
|
||||||
pinMode(_buttonPin, INPUT_PULLUP);
|
pinMode(_buttonPin, INPUT_PULLUP);
|
||||||
|
|
||||||
attachInterrupt(_buttonPin, buttonUp, _buttonPinInterruptOn);
|
// Workaround for https://github.com/arduino/ArduinoCore-samd/issues/587
|
||||||
|
#if (ARDUINO_API_VERSION >= 10200)
|
||||||
|
attachInterrupt(_buttonPin, buttonUp, (PinStatus)_buttonPinInterruptOn);
|
||||||
|
#else
|
||||||
|
attachInterrupt(_buttonPin, buttonUp, _buttonPinInterruptOn);
|
||||||
|
#endif
|
||||||
enabled(true);
|
enabled(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user