Skip to content

Commit 7b99a2e

Browse files
committed
Removed waitForReply(). Not needed anymore.
1 parent 722a23c commit 7b99a2e

File tree

2 files changed

+0
-11
lines changed

2 files changed

+0
-11
lines changed

libraries/MySensors/MySensor.cpp

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -158,16 +158,6 @@ void MySensor::findParentNode() {
158158
wait(2000);
159159
}
160160

161-
void MySensor::waitForReply() {
162-
unsigned long enter = millis();
163-
// Wait a couple of seconds for response
164-
while (millis() - enter < 2000) {
165-
// reset watchdog
166-
wdt_reset();
167-
process();
168-
}
169-
}
170-
171161
boolean MySensor::sendRoute(MyMessage &message) {
172162
// Make sure to process any incoming messages before sending (could this end up in recursive loop?)
173163
// process();

libraries/MySensors/MySensor.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,6 @@ class MySensor : public RF24
274274
void (*timeCallback)(unsigned long); // Callback for requested time messages
275275
void (*msgCallback)(const MyMessage &); // Callback for incoming messages from other nodes and gateway.
276276

277-
void waitForReply();
278277
void requestNodeId();
279278
void setupNode();
280279
void findParentNode();

0 commit comments

Comments
 (0)