Skip to content

Commit 381d986

Browse files
author
Marcelo Aquino
committed
fix clear routing table data
childNodeTable is a pointer, will always return 2
1 parent 08221e6 commit 381d986

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/MySensors/MySensor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ boolean MySensor::process() {
365365
if (repeaterMode && msg.getString()[0] == 'C') {
366366
// Clears child relay data for this node
367367
debug(PSTR("rd=clear\n"));
368-
for (uint8_t i=0;i< sizeof(childNodeTable); i++) {
368+
for (uint8_t i=0;i< 256; i++) {
369369
removeChildRoute(i);
370370
}
371371
// Clear parent node id & distance to gw

0 commit comments

Comments
 (0)