mirror of
https://github.com/thelsing/knx.git
synced 2025-06-04 01:15:26 +02:00
Changed tabs to spaces
This commit is contained in:
parent
38ee9066c8
commit
acec45c267
@ -258,12 +258,12 @@ template <class P, class B> class KnxFacade : private SaveRestore
|
|||||||
_bau.deviceObject().version(value);
|
_bau.deviceObject().version(value);
|
||||||
}
|
}
|
||||||
|
|
||||||
void start()
|
void start()
|
||||||
{
|
{
|
||||||
if (_ledPin >= 0)
|
if (_ledPin >= 0)
|
||||||
pinMode(_ledPin, OUTPUT);
|
pinMode(_ledPin, OUTPUT);
|
||||||
|
|
||||||
progLedOff();
|
progLedOff();
|
||||||
|
|
||||||
if(_buttonPin >= 0)
|
if(_buttonPin >= 0)
|
||||||
{
|
{
|
||||||
@ -272,16 +272,16 @@ template <class P, class B> class KnxFacade : private SaveRestore
|
|||||||
if (_progButtonISRFuncPtr)
|
if (_progButtonISRFuncPtr)
|
||||||
{
|
{
|
||||||
// Workaround for https://github.com/arduino/ArduinoCore-samd/issues/587
|
// Workaround for https://github.com/arduino/ArduinoCore-samd/issues/587
|
||||||
#if (ARDUINO_API_VERSION >= 10200)
|
#if (ARDUINO_API_VERSION >= 10200)
|
||||||
attachInterrupt(_buttonPin, _progButtonISRFuncPtr, (PinStatus)CHANGE);
|
attachInterrupt(_buttonPin, _progButtonISRFuncPtr, (PinStatus)CHANGE);
|
||||||
#else
|
#else
|
||||||
attachInterrupt(_buttonPin, _progButtonISRFuncPtr, CHANGE);
|
attachInterrupt(_buttonPin, _progButtonISRFuncPtr, CHANGE);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
enabled(true);
|
enabled(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
void setButtonISRFunction(IsrFunctionPtr progButtonISRFuncPtr)
|
void setButtonISRFunction(IsrFunctionPtr progButtonISRFuncPtr)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user