From 85425e22de314e98902415aab34553a48eb44b7d Mon Sep 17 00:00:00 2001 From: cyberman54 Date: Tue, 16 Aug 2022 13:45:05 +0200 Subject: [PATCH] code sanitizations --- src/bmesensor.cpp | 1 - src/rtctime.cpp | 3 --- src/timesync.cpp | 1 - 3 files changed, 5 deletions(-) diff --git a/src/bmesensor.cpp b/src/bmesensor.cpp index f790051b..5e5a8bf9 100644 --- a/src/bmesensor.cpp +++ b/src/bmesensor.cpp @@ -161,7 +161,6 @@ void updateState(void) { stateUpdateCounter++; } } else { - /* Update every STATE_SAVE_PERIOD minutes */ if ((long)(millis() - stateUpdateCounter * STATE_SAVE_PERIOD) >= 0) { update = true; diff --git a/src/rtctime.cpp b/src/rtctime.cpp index 23b3ad20..3d494267 100644 --- a/src/rtctime.cpp +++ b/src/rtctime.cpp @@ -38,7 +38,6 @@ uint8_t rtc_init(void) { // failure // return 0 - } // rtc_init() uint8_t set_rtctime(time_t t) { // t is sec epoch time @@ -49,7 +48,6 @@ uint8_t set_rtctime(time_t t) { // t is sec epoch time Rtc.SetDateTime(RtcDateTime(t - SECS_YR_2000)); // epoch -> sec2000 ESP_LOGI(TAG, "RTC time synced"); return 1; // success - } // set_rtctime() time_t get_rtctime(uint16_t *msec) { @@ -72,7 +70,6 @@ time_t get_rtctime(uint16_t *msec) { #endif return t; - } // get_rtctime() float get_rtctemp(void) { diff --git a/src/timesync.cpp b/src/timesync.cpp index 917afef4..c382676a 100644 --- a/src/timesync.cpp +++ b/src/timesync.cpp @@ -157,7 +157,6 @@ void timesync_processReq(void *taskparameter) { // end of time critical section: release app irq lock timeSyncPending = false; unmask_user_IRQ(); - } // infinite while(1) }