mirror of
https://github.com/timmbogner/Farm-Data-Relay-System
synced 2024-11-08 13:10:29 +00:00
commit
cd1bd285a5
@ -58,7 +58,7 @@ void printLoggingInformation() {
|
||||
#ifdef USE_SD_LOG
|
||||
DBG("Logging to SD-Card : enabled");
|
||||
#ifdef LOGBUF_DELAY
|
||||
DBG("log buffer delay in ms: " + " + String(LOGBUF_DELAY));
|
||||
DBG("log buffer delay in ms: " + String(LOGBUF_DELAY));
|
||||
#else
|
||||
DBG("log buffer delay in ms: NOT SPECIFIED - check config!");
|
||||
#endif
|
||||
|
@ -642,14 +642,7 @@ int findOpenPeer() { // Returns an expired entry in peer_list, -1 if full.
|
||||
DBG("No open peers");
|
||||
return -1;
|
||||
}
|
||||
int checkPeerExpired() { // Checks whether any entries in the peer_list have expired. Not currently used.
|
||||
for (int i = 0; i < 16; i++) {
|
||||
if ((millis() - peer_list[i].last_seen) >= PEER_TIMEOUT) {
|
||||
esp_now_del_peer(incMAC);
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
void handleCommands() {
|
||||
|
@ -201,8 +201,8 @@ crcResult getLoRa() {
|
||||
DBG("Incoming LoRa packet of " + String(packetSize) + "bytes not processed.");
|
||||
}
|
||||
}
|
||||
return CRC_NULL;
|
||||
#endif //USE_LORA
|
||||
return CRC_NULL;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user