Skip to content

Commit c8883c6

Browse files
committed
Request parent missing in setup()
1 parent 17a680f commit c8883c6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libraries/MySensors/MySensor.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ void MySensor::begin(void (*_msgCallback)(const MyMessage &), uint8_t _nodeId, b
7474
// If the current node is also repeater, be aware of this.
7575
nc.distance = 1;
7676
} else if (!isValidParent(nc.parentNodeId)) {
77-
// Auto find parent, but parent in eeprom is invalid. Force parent search on first transmit.
78-
nc.distance = DISTANCE_INVALID;
77+
// Auto find parent, but parent in eeprom is invalid. Try find one.
78+
findParentNode();
7979
}
8080

8181
if ( (_nodeId != AUTO) && (nc.nodeId != _nodeId) ) {

0 commit comments

Comments
 (0)