Skip to content

Commit d02d04f

Browse files
committed
fix bug in res tunnel feature
1 parent c1588e1 commit d02d04f

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/knx/ip_data_link_layer.cpp

+1-2
Original file line numberDiff line numberDiff line change
@@ -654,8 +654,7 @@ void IpDataLinkLayer::loopHandleConnectRequest(uint8_t* buffer, uint16_t length,
654654
tunnelResOptions[i] = (*(tunCtrlBytes+i) & 0x60) >> 5;
655655
}
656656

657-
658-
if(tunnelResActive[i]) // tunnel reserve feature active for this tunnel
657+
if(resTunActive && tunnelResActive[i]) // tunnel reserve feature active for this tunnel
659658
{
660659
#ifdef KNX_LOG_TUNNELING
661660
print("tunnel reserve feature active for this tunnel: ");

src/knx/knx_ip_tunnel_connection.cpp

+5
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ KnxIpTunnelConnection::KnxIpTunnelConnection()
77

88
void KnxIpTunnelConnection::Reset()
99
{
10+
print("Close Tunnel-Connection[");
11+
print("?");
12+
print("], Channel: 0x");
13+
println(ChannelId, 16);
14+
1015
ChannelId = 0;
1116
IpAddress = 0;
1217
PortData = 0;

0 commit comments

Comments
 (0)