Skip to content

Commit

Permalink
fix bug in res tunnel feature
Browse files Browse the repository at this point in the history
  • Loading branch information
Ing-Dom committed Dec 23, 2024
1 parent c1588e1 commit d02d04f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 1 addition & 2 deletions src/knx/ip_data_link_layer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -654,8 +654,7 @@ void IpDataLinkLayer::loopHandleConnectRequest(uint8_t* buffer, uint16_t length,
tunnelResOptions[i] = (*(tunCtrlBytes+i) & 0x60) >> 5;
}


if(tunnelResActive[i]) // tunnel reserve feature active for this tunnel
if(resTunActive && tunnelResActive[i]) // tunnel reserve feature active for this tunnel
{
#ifdef KNX_LOG_TUNNELING
print("tunnel reserve feature active for this tunnel: ");
Expand Down
5 changes: 5 additions & 0 deletions src/knx/knx_ip_tunnel_connection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ KnxIpTunnelConnection::KnxIpTunnelConnection()

void KnxIpTunnelConnection::Reset()
{
print("Close Tunnel-Connection[");
print("?");
print("], Channel: 0x");
println(ChannelId, 16);

ChannelId = 0;
IpAddress = 0;
PortData = 0;
Expand Down

0 comments on commit d02d04f

Please sign in to comment.