From 438b3485e52d85c09b6bff4a8f84cd040ac8ab71 Mon Sep 17 00:00:00 2001 From: Klaus K Wilting Date: Fri, 10 Apr 2020 22:37:18 +0200 Subject: [PATCH] compiler warning sanitizations --- src/display.cpp | 2 -- src/timesync.cpp | 5 +---- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/src/display.cpp b/src/display.cpp index 7c44bef7..5c3759dd 100644 --- a/src/display.cpp +++ b/src/display.cpp @@ -220,8 +220,6 @@ void dp_drawPage(time_t t, bool nextpage) { static bool wasnofix = true; #endif -start: - if (nextpage) { DisplayPage = (DisplayPage >= DISPLAY_PAGES - 1) ? 0 : (DisplayPage + 1); dp_clear(); diff --git a/src/timesync.cpp b/src/timesync.cpp index ce32d4e6..a44ab138 100644 --- a/src/timesync.cpp +++ b/src/timesync.cpp @@ -174,9 +174,6 @@ void IRAM_ATTR timesync_serverAnswer(void *pUserData, int flag) { if (!timeSyncPending) return; - // store LMIC time when we received the timesync answer - ostime_t rxTime = osticks2ms(os_getTime()); - // mask application irq to ensure accurate timing mask_user_IRQ(); @@ -192,7 +189,7 @@ void IRAM_ATTR timesync_serverAnswer(void *pUserData, int flag) { // flag: length of buffer // Store the instant the time request of the node was received on the gateway - timesync_store(rxTime, timesync_rx); + timesync_store(osticks2ms(os_getTime(), timesync_rx); // parse pUserData: // p type meaning