Merge pull request #113 from timmbogner/#111

Issue #111
This commit is contained in:
Timm Bogner 2022-11-03 09:59:49 -05:00 committed by GitHub
commit cd1bd285a5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 10 deletions

View File

@ -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

View File

@ -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() {

View File

@ -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;
}