NULL to nullptr

This commit is contained in:
etrinh 2020-07-18 21:32:47 +02:00
parent e230fa79ab
commit 8bb8d4ba76

View File

@ -245,7 +245,7 @@ void TpUartDataLinkLayer::loop()
//Destination Address + payload available
_xorSum ^= rxByte;
//check if echo
if (_sendBuffer != NULL && (!((buffer[0] ^ _sendBuffer[0]) & ~0x20) && !memcmp(buffer + _convert + 1, _sendBuffer + 1, 5)))
if (_sendBuffer != nullptr && (!((buffer[0] ^ _sendBuffer[0]) & ~0x20) && !memcmp(buffer + _convert + 1, _sendBuffer + 1, 5)))
{ //ignore repeated bit of control byte
_isEcho = true;
}