Bugfixes and cleanup

This commit is contained in:
Henrik Ekblad
2014-09-09 22:33:49 +02:00
parent 7fa54a6e5a
commit 5bb8c9b40c
8 changed files with 24 additions and 218 deletions
+3 -1
View File
@@ -81,7 +81,9 @@ void MySensor::begin(void (*_msgCallback)(const MyMessage &), uint8_t _nodeId, b
requestNodeId();
}
debug(PSTR("%s started, id %d\n"), repeaterMode?"repeater":"sensor", nc.nodeId);
if (!isGateway) {
debug(PSTR("%s started, id %d\n"), repeaterMode?"repeater":"sensor", nc.nodeId);
}
// Open reading pipe for messages directed to this node (set write pipe to same)
RF24::openReadingPipe(WRITE_PIPE, TO_ADDR(nc.nodeId));