Request parent missing in setup()
This commit is contained in:
@@ -74,8 +74,8 @@ void MySensor::begin(void (*_msgCallback)(const MyMessage &), uint8_t _nodeId, b
|
|||||||
// If the current node is also repeater, be aware of this.
|
// If the current node is also repeater, be aware of this.
|
||||||
nc.distance = 1;
|
nc.distance = 1;
|
||||||
} else if (!isValidParent(nc.parentNodeId)) {
|
} else if (!isValidParent(nc.parentNodeId)) {
|
||||||
// Auto find parent, but parent in eeprom is invalid. Force parent search on first transmit.
|
// Auto find parent, but parent in eeprom is invalid. Try find one.
|
||||||
nc.distance = DISTANCE_INVALID;
|
findParentNode();
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( (_nodeId != AUTO) && (nc.nodeId != _nodeId) ) {
|
if ( (_nodeId != AUTO) && (nc.nodeId != _nodeId) ) {
|
||||||
|
|||||||
Reference in New Issue
Block a user