We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f6dbdcf commit fcb9243Copy full SHA for fcb9243
libraries/MySensors/MySensor.cpp
@@ -302,6 +302,12 @@ void MySensor::setupNode() {
302
}
303
304
void MySensor::findParentNode() {
305
+ static boolean findingParentNode = false;
306
+
307
+ if (findingParentNode)
308
+ return;
309
+ findingParentNode = true;
310
311
failedTransmissions = 0;
312
313
// Set distance to max
@@ -316,6 +322,7 @@ void MySensor::findParentNode() {
316
322
317
323
// Wait for ping response.
318
324
wait(2000);
325
+ findingParentNode = false;
319
326
320
327
321
328
boolean MySensor::sendRoute(MyMessage &message) {
0 commit comments