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)
|
if (destination == ownAddr)
|
||||||
{
|
{
|
||||||
// Send to local stack
|
// Send to local stack only
|
||||||
frameRecieved(frame);
|
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?
|
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);
|
sendFrame(frame);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -82,10 +80,10 @@ void DataLinkLayer::dataConReceived(CemiFrame& frame, bool success)
|
|||||||
|
|
||||||
if (_cemiServer)
|
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())
|
if (frame.sourceAddress() == _cemiServer->clientAddress())
|
||||||
{
|
{
|
||||||
//_cemiServer->dataConfirmationToTunnel(frame);
|
|
||||||
// Stop processing here and do NOT send it the local network layer
|
// Stop processing here and do NOT send it the local network layer
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user