File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -282,6 +282,13 @@ boolean MySensor::process() {
282
282
uint8_t destination = msg.destination ;
283
283
284
284
if (destination == nc.nodeId ) {
285
+ // This message is addressed to this node
286
+
287
+ if (repeaterMode && last != nc.parentNodeId ) {
288
+ // Message is from one of the child nodes. Add it to routing table.
289
+ addChildRoute (sender, last);
290
+ }
291
+
285
292
// Check if sender requests an ack back.
286
293
if (mGetRequestAck (msg)) {
287
294
// Copy message
@@ -293,12 +300,6 @@ boolean MySensor::process() {
293
300
sendRoute (ack);
294
301
}
295
302
296
- // This message is addressed to this node
297
- if (repeaterMode && last != nc.parentNodeId ) {
298
- // Message is from one of the child nodes. Add it to routing table.
299
- addChildRoute (sender, last);
300
- }
301
-
302
303
if (command == C_INTERNAL) {
303
304
if (type == I_FIND_PARENT_RESPONSE && !isGateway) {
304
305
// We've received a reply to a FIND_PARENT message. Check if the distance is
You can’t perform that action at this time.
0 commit comments