compiler warning sanitizations

This commit is contained in:
Klaus K Wilting 2020-04-10 22:37:18 +02:00
parent 99b67deaec
commit 438b3485e5
2 changed files with 1 additions and 6 deletions

View File

@ -220,8 +220,6 @@ void dp_drawPage(time_t t, bool nextpage) {
static bool wasnofix = true; static bool wasnofix = true;
#endif #endif
start:
if (nextpage) { if (nextpage) {
DisplayPage = (DisplayPage >= DISPLAY_PAGES - 1) ? 0 : (DisplayPage + 1); DisplayPage = (DisplayPage >= DISPLAY_PAGES - 1) ? 0 : (DisplayPage + 1);
dp_clear(); dp_clear();

View File

@ -174,9 +174,6 @@ void IRAM_ATTR timesync_serverAnswer(void *pUserData, int flag) {
if (!timeSyncPending) if (!timeSyncPending)
return; return;
// store LMIC time when we received the timesync answer
ostime_t rxTime = osticks2ms(os_getTime());
// mask application irq to ensure accurate timing // mask application irq to ensure accurate timing
mask_user_IRQ(); mask_user_IRQ();
@ -192,7 +189,7 @@ void IRAM_ATTR timesync_serverAnswer(void *pUserData, int flag) {
// flag: length of buffer // flag: length of buffer
// Store the instant the time request of the node was received on the gateway // 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: // parse pUserData:
// p type meaning // p type meaning