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;
#endif
start:
if (nextpage) {
DisplayPage = (DisplayPage >= DISPLAY_PAGES - 1) ? 0 : (DisplayPage + 1);
dp_clear();

View File

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