Skip to content

Commit

Permalink
Fix routing problem in repeaters.
Browse files Browse the repository at this point in the history
  • Loading branch information
henrikekblad committed Aug 17, 2015
1 parent 533c26b commit 2f1df52
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions libraries/MySensors/MySensor.cpp
Expand Up @@ -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);
Expand Down

0 comments on commit 2f1df52

Please sign in to comment.