We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6d1c609 commit cfed7a2Copy full SHA for cfed7a2
libraries/MySensors/core/MyTransport.cpp
@@ -140,7 +140,7 @@ inline void transportProcess() {
140
// This message is addressed to this node
141
mSetSigned(_msg,0); // Clear the sign-flag now as verification is completed
142
// prevent buffer overflow by limiting max. possible message length (5 bits=31 bytes max) to MAX_PAYLOAD (25 bytes)
143
- mSetLength(_msg) = min(mGetLength(_msg),MAX_PAYLOAD);
+ mSetLength(_msg, min(mGetLength(_msg),MAX_PAYLOAD));
144
// null terminate data
145
_msg.data[mGetLength(_msg)] = 0x00;
146
0 commit comments