mirror of
https://github.com/thelsing/knx.git
synced 2025-10-08 11:14:29 +02:00
fix bug in echo detection
This commit is contained in:
parent
31fb516ae0
commit
6cf2011e58
@ -235,13 +235,13 @@ void TpUartDataLinkLayer::loop()
|
||||
//Destination Address + payload available
|
||||
_xorSum ^= rxByte;
|
||||
//check if echo
|
||||
if (!((buffer[0] ^ _sendBuffer[0]) & ~0x20) && !memcmp(buffer + _convert + 1, _sendBuffer + 1, 5))
|
||||
{ //ignore repeated bit of control byte
|
||||
_isEcho = true;
|
||||
}
|
||||
else
|
||||
_isEcho = false;
|
||||
if(_sendBuffer != NULL)
|
||||
{
|
||||
_isEcho = false;
|
||||
if (!((buffer[0] ^ _sendBuffer[0]) & ~0x20) && !memcmp(buffer + _convert + 1, _sendBuffer + 1, 5)) //ignore repeated bit of control byte
|
||||
{
|
||||
_isEcho = true;
|
||||
}
|
||||
}
|
||||
|
||||
//convert into Extended.ind
|
||||
|
Loading…
Reference in New Issue
Block a user