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
|
//Destination Address + payload available
|
||||||
_xorSum ^= rxByte;
|
_xorSum ^= rxByte;
|
||||||
//check if echo
|
//check if echo
|
||||||
if (!((buffer[0] ^ _sendBuffer[0]) & ~0x20) && !memcmp(buffer + _convert + 1, _sendBuffer + 1, 5))
|
_isEcho = false;
|
||||||
{ //ignore repeated bit of control byte
|
if(_sendBuffer != NULL)
|
||||||
_isEcho = true;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
{
|
||||||
_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
|
//convert into Extended.ind
|
||||||
|
Loading…
Reference in New Issue
Block a user