mirror of
https://github.com/thelsing/knx.git
synced 2026-03-13 02:22:13 +01:00
fix examples. Only reserve memory on tableobject if size > 0
This commit is contained in:
@@ -9,8 +9,8 @@ Bau57B0 bau(platform);
|
||||
#endif
|
||||
KnxFacade knx(bau);
|
||||
|
||||
void buttonUp()
|
||||
{
|
||||
void buttonUp()
|
||||
{
|
||||
if (knx.progMode())
|
||||
{
|
||||
digitalWrite(knx.ledPin(), LOW);
|
||||
@@ -23,7 +23,7 @@ void buttonUp()
|
||||
}
|
||||
}
|
||||
|
||||
KnxFacade::KnxFacade(BauSystemB& bau) : _bau(bau)
|
||||
KnxFacade::KnxFacade(BauSystemB& bau) : _bau(bau)
|
||||
{
|
||||
manufacturerId(0xfa);
|
||||
_bau.addSaveRestore(this);
|
||||
@@ -116,12 +116,12 @@ void KnxFacade::version(uint16_t value)
|
||||
|
||||
void KnxFacade::start()
|
||||
{
|
||||
pinMode(_ledPin, OUTPUT);
|
||||
|
||||
pinMode(_buttonPin, INPUT_PULLUP);
|
||||
|
||||
attachInterrupt(_buttonPin, buttonUp, RISING);
|
||||
enabled(true);
|
||||
pinMode(_ledPin, OUTPUT);
|
||||
|
||||
pinMode(_buttonPin, INPUT_PULLUP);
|
||||
|
||||
attachInterrupt(_buttonPin, buttonUp, RISING);
|
||||
enabled(true);
|
||||
}
|
||||
|
||||
uint8_t* KnxFacade::paramData(uint32_t addr)
|
||||
|
||||
Reference in New Issue
Block a user