Merge development branch
This commit is contained in:
@@ -583,6 +583,8 @@ void transportProcessMessage(void) {
|
||||
|
||||
// Is message addressed to this node?
|
||||
if (destination == _nc.nodeId) {
|
||||
// prevent buffer overflow by limiting max. possible message length (5 bits=31 bytes max) to MAX_PAYLOAD (25 bytes)
|
||||
mSetLength(_msg, min(mGetLength(_msg),(uint8_t)MAX_PAYLOAD));
|
||||
// null terminate data
|
||||
_msg.data[msgLength] = 0u;
|
||||
// Check if sender requests an ack back.
|
||||
|
||||
Reference in New Issue
Block a user