From b62b6341bfc9e3670add78665243c36a90c5ec58 Mon Sep 17 00:00:00 2001 From: Ing-Dom Date: Tue, 2 Jan 2024 16:55:59 +0100 Subject: [PATCH] fix build errors --- src/knx/cemi_server.cpp | 1 + src/knx/router_object.cpp | 7 ++++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/knx/cemi_server.cpp b/src/knx/cemi_server.cpp index 544a9802..f87bebba 100644 --- a/src/knx/cemi_server.cpp +++ b/src/knx/cemi_server.cpp @@ -13,6 +13,7 @@ CemiServer::CemiServer(BauSystemB& bau) : _bau(bau) #ifdef USE_USB + , _usbTunnelInterface(*this, _bau.deviceObject().maskVersion(), _bau.deviceObject().manufacturerId()) diff --git a/src/knx/router_object.cpp b/src/knx/router_object.cpp index 8cfe74ee..70fab47b 100644 --- a/src/knx/router_object.cpp +++ b/src/knx/router_object.cpp @@ -185,14 +185,15 @@ const uint8_t* RouterObject::restore(const uint8_t* buffer) void RouterObject::commandClearSetRoutingTable(bool bitIsSet) { + uint8_t fillbyte = bitIsSet ? 0xFF : 0x00; + uint32_t relptr = _memory.toRelative(data()); #ifdef KNX_LOG_COUPLER print("RouterObject::commandClearSetRoutingTable "); println(bitIsSet); -#endif - uint8_t fillbyte = bitIsSet ? 0xFF : 0x00; - uint32_t relptr = _memory.toRelative(data()); println(relptr); println((uint32_t)data()); +#endif + for (uint16_t i = 0; i < kFilterTableSize; i++) { _memory.writeMemory(relptr+i, 1, &fillbyte);