Add warning message in TP-UART data link layer (#104)

* Fix address type bug in TP-UART data link layer

* Fix address check

* Fix blank
This commit is contained in:
nanosonde 2020-11-17 17:57:51 +01:00 committed by GitHub
parent 390ca8ccfb
commit abb37c3b63
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -142,6 +142,11 @@ bool Bau07B0::isAckRequired(uint16_t address, bool isGrpAddr)
if (address == _deviceObj.individualAddress())
return true;
if (address == 0)
{
println("Invalid broadcast detected: destination address is 0, but address type is \"individual\"");
}
return false;
}