Skip to content

Commit

Permalink
fix build errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Ing-Dom committed Jan 2, 2024
1 parent 49679c3 commit b62b634
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/knx/cemi_server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
CemiServer::CemiServer(BauSystemB& bau)
: _bau(bau)
#ifdef USE_USB
,
_usbTunnelInterface(*this,
_bau.deviceObject().maskVersion(),
_bau.deviceObject().manufacturerId())
Expand Down
7 changes: 4 additions & 3 deletions src/knx/router_object.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit b62b634

Please sign in to comment.