Fix routing problem in repeaters.

This commit is contained in:
Henrik Ekblad
2015-08-17 20:45:56 +02:00
parent 533c26b8ab
commit 2f1df520ab
+4
View File
@@ -397,6 +397,10 @@ boolean MySensor::sendRoute(MyMessage &message) {
#endif
if (dest == GATEWAY_ADDRESS || !repeaterMode) {
// Store this address in routing table (if repeater)
if (repeaterMode) {
hw_writeConfig(EEPROM_ROUTES_ADDRESS+sender, last);
}
// If destination is the gateway or if we aren't a repeater, let
// our parent take care of the message
ok = sendWrite(nc.parentNodeId, message);