sforkowany z mirror/meshtastic-firmware
Fix small bug in range test plugin.
packetSequence was an unsigned int but i was using %d. oops1.2-legacy
rodzic
0ce7a3f0ec
commit
baeb002245
2
proto
2
proto
|
@ -1 +1 @@
|
||||||
Subproject commit b8c0499f28f9673d1df17d04da562e30703f01cb
|
Subproject commit 94bd0aae44e2c16c7776289225c804100c856cd4
|
|
@ -112,7 +112,7 @@ void RangeTestPluginRadio::sendPayload(NodeNum dest, bool wantReplies)
|
||||||
packetSequence++;
|
packetSequence++;
|
||||||
|
|
||||||
static char heartbeatString[20];
|
static char heartbeatString[20];
|
||||||
snprintf(heartbeatString, sizeof(heartbeatString), "seq %d", packetSequence);
|
snprintf(heartbeatString, sizeof(heartbeatString), "seq %u", packetSequence);
|
||||||
|
|
||||||
p->decoded.payload.size = strlen(heartbeatString); // You must specify how many bytes are in the reply
|
p->decoded.payload.size = strlen(heartbeatString); // You must specify how many bytes are in the reply
|
||||||
memcpy(p->decoded.payload.bytes, heartbeatString, p->decoded.payload.size);
|
memcpy(p->decoded.payload.bytes, heartbeatString, p->decoded.payload.size);
|
||||||
|
|
Ładowanie…
Reference in New Issue