fix clear routing table data

childNodeTable is a pointer, will always return 2
This commit is contained in:
Marcelo Aquino
2015-02-06 20:59:57 -02:00
parent 08221e6567
commit 381d98648f
+1 -1
View File
@@ -365,7 +365,7 @@ boolean MySensor::process() {
if (repeaterMode && msg.getString()[0] == 'C') {
// Clears child relay data for this node
debug(PSTR("rd=clear\n"));
for (uint8_t i=0;i< sizeof(childNodeTable); i++) {
for (uint8_t i=0;i< 256; i++) {
removeChildRoute(i);
}
// Clear parent node id & distance to gw