Removed waitForReply(). Not needed anymore.
This commit is contained in:
@@ -158,16 +158,6 @@ void MySensor::findParentNode() {
|
||||
wait(2000);
|
||||
}
|
||||
|
||||
void MySensor::waitForReply() {
|
||||
unsigned long enter = millis();
|
||||
// Wait a couple of seconds for response
|
||||
while (millis() - enter < 2000) {
|
||||
// reset watchdog
|
||||
wdt_reset();
|
||||
process();
|
||||
}
|
||||
}
|
||||
|
||||
boolean MySensor::sendRoute(MyMessage &message) {
|
||||
// Make sure to process any incoming messages before sending (could this end up in recursive loop?)
|
||||
// process();
|
||||
|
||||
@@ -274,7 +274,6 @@ class MySensor : public RF24
|
||||
void (*timeCallback)(unsigned long); // Callback for requested time messages
|
||||
void (*msgCallback)(const MyMessage &); // Callback for incoming messages from other nodes and gateway.
|
||||
|
||||
void waitForReply();
|
||||
void requestNodeId();
|
||||
void setupNode();
|
||||
void findParentNode();
|
||||
|
||||
Reference in New Issue
Block a user