mirror of
https://github.com/thelsing/knx.git
synced 2025-08-13 13:46:20 +02:00
save work
This commit is contained in:
parent
05716b2d80
commit
9c7dc1e267
@ -32,14 +32,12 @@ void DataLinkLayer::dataRequestFromTunnel(CemiFrame& frame)
|
||||
{
|
||||
if (destination == ownAddr)
|
||||
{
|
||||
// Send to local stack
|
||||
// Send to local stack only
|
||||
frameRecieved(frame);
|
||||
// Send back a confirmation
|
||||
//dataConReceived(frame, true);
|
||||
}
|
||||
else // TODO: check if this is correct: shall we send a frame to the bus too if it was intended for us?
|
||||
{
|
||||
// Send to KNX medium
|
||||
// Send to KNX medium only
|
||||
sendFrame(frame);
|
||||
}
|
||||
}
|
||||
@ -82,10 +80,10 @@ void DataLinkLayer::dataConReceived(CemiFrame& frame, bool success)
|
||||
|
||||
if (_cemiServer)
|
||||
{
|
||||
// Only send our own confirmation messages to the tunnel
|
||||
// if the confirmation was caused by a tunnel request then
|
||||
// do not send it to the local stack
|
||||
if (frame.sourceAddress() == _cemiServer->clientAddress())
|
||||
{
|
||||
//_cemiServer->dataConfirmationToTunnel(frame);
|
||||
// Stop processing here and do NOT send it the local network layer
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user