Last byte clearing is sufficient
This commit is contained in:
@@ -140,9 +140,8 @@ inline void transportProcess() {
|
|||||||
if (destination == _nc.nodeId) {
|
if (destination == _nc.nodeId) {
|
||||||
// This message is addressed to this node
|
// This message is addressed to this node
|
||||||
mSetSigned(_msg,0); // Clear the sign-flag now as verification is completed
|
mSetSigned(_msg,0); // Clear the sign-flag now as verification is completed
|
||||||
// clear bytes after message end
|
// null terminate data
|
||||||
memset((uint8_t*)&_msg.data[messageLength],0x00,MAX_PAYLOAD-messageLength+1);
|
_msg.data[messageLength] = 0x00;
|
||||||
|
|
||||||
#if defined(MY_REPEATER_FEATURE)
|
#if defined(MY_REPEATER_FEATURE)
|
||||||
if (_msg.last != _nc.parentNodeId) {
|
if (_msg.last != _nc.parentNodeId) {
|
||||||
// Message is from one of the child nodes. Add it to routing table.
|
// Message is from one of the child nodes. Add it to routing table.
|
||||||
|
|||||||
Reference in New Issue
Block a user