From 4286e4b8b3b766e6f50c155b1d88c159df196751 Mon Sep 17 00:00:00 2001 From: Klaus K Wilting Date: Mon, 5 Oct 2020 21:57:45 +0200 Subject: [PATCH] small code sanitizations --- src/gpsread.cpp | 4 ++-- src/timesync.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gpsread.cpp b/src/gpsread.cpp index a20a6456..d37990ff 100644 --- a/src/gpsread.cpp +++ b/src/gpsread.cpp @@ -126,8 +126,8 @@ time_t get_gpstime(uint16_t *msec) { tm.Year = CalendarYrToTm(atoi(gpsyear.value())); // year offset from 1970 t = makeTime(tm); - ESP_LOGD(TAG, "GPS time/date = %2d:%2d:%2d / %2d.%2d.%2d", tm.Hour, - tm.Minute, tm.Second, tm.Day, tm.Month, tm.Year + 1970); + //ESP_LOGD(TAG, "GPS time/date = %2d:%2d:%2d / %2d.%2d.%2d", tm.Hour, + // tm.Minute, tm.Second, tm.Day, tm.Month, tm.Year + 1970); // add protocol delay with millisecond precision t += delay_ms / 1000 - 1; // whole seconds diff --git a/src/timesync.cpp b/src/timesync.cpp index 373e55ca..ffc1bcd3 100644 --- a/src/timesync.cpp +++ b/src/timesync.cpp @@ -81,7 +81,7 @@ void IRAM_ATTR timesync_processReq(void *taskparameter) { for (uint8_t i = 0; i < TIME_SYNC_SAMPLES; i++) { // send timesync request -#if (TIME_SYNC_LORASERVER) // aks user's timeserver (for LoRAWAN < 1.0.3) +#if (TIME_SYNC_LORASERVER) // ask user's timeserver (for LoRAWAN < 1.0.3) payload.reset(); payload.addByte(time_sync_seqNo); SendPayload(TIMEPORT, prio_high);