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 @@ -274,6 +274,13 @@ boolean MySensor::process() {
274
274
uint8_t destination = msg.destination ;
275
275
276
276
if (destination == nc.nodeId ) {
277
+ // This message is addressed to this node
278
+
279
+ if (repeaterMode && last != nc.parentNodeId ) {
280
+ // Message is from one of the child nodes. Add it to routing table.
281
+ addChildRoute (sender, last);
282
+ }
283
+
277
284
// Check if sender requests an ack back.
278
285
if (mGetRequestAck (msg)) {
279
286
// Copy message
@@ -285,12 +292,6 @@ boolean MySensor::process() {
285
292
sendRoute (ack);
286
293
}
287
294
288
- // This message is addressed to this node
289
- if (repeaterMode && last != nc.parentNodeId ) {
290
- // Message is from one of the child nodes. Add it to routing table.
291
- addChildRoute (sender, last);
292
- }
293
-
294
295
if (command == C_INTERNAL) {
295
296
if (type == I_FIND_PARENT_RESPONSE && !isGateway) {
296
297
// 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