Removed waitForReply(). Not needed anymore.

This commit is contained in:
Henrik Ekblad
2015-02-10 22:25:13 +01:00
parent 722a23cfd9
commit 7b99a2ef94
2 changed files with 0 additions and 11 deletions
-10
View File
@@ -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();
-1
View File
@@ -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();