code sanitizations

This commit is contained in:
cyberman54 2022-08-16 13:45:05 +02:00
parent f05acd32a8
commit 85425e22de
3 changed files with 0 additions and 5 deletions

View File

@ -161,7 +161,6 @@ void updateState(void) {
stateUpdateCounter++; stateUpdateCounter++;
} }
} else { } else {
/* Update every STATE_SAVE_PERIOD minutes */ /* Update every STATE_SAVE_PERIOD minutes */
if ((long)(millis() - stateUpdateCounter * STATE_SAVE_PERIOD) >= 0) { if ((long)(millis() - stateUpdateCounter * STATE_SAVE_PERIOD) >= 0) {
update = true; update = true;

View File

@ -38,7 +38,6 @@ uint8_t rtc_init(void) {
// failure // failure
// return 0 // return 0
} // rtc_init() } // rtc_init()
uint8_t set_rtctime(time_t t) { // t is sec epoch time 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 Rtc.SetDateTime(RtcDateTime(t - SECS_YR_2000)); // epoch -> sec2000
ESP_LOGI(TAG, "RTC time synced"); ESP_LOGI(TAG, "RTC time synced");
return 1; // success return 1; // success
} // set_rtctime() } // set_rtctime()
time_t get_rtctime(uint16_t *msec) { time_t get_rtctime(uint16_t *msec) {
@ -72,7 +70,6 @@ time_t get_rtctime(uint16_t *msec) {
#endif #endif
return t; return t;
} // get_rtctime() } // get_rtctime()
float get_rtctemp(void) { float get_rtctemp(void) {

View File

@ -157,7 +157,6 @@ void timesync_processReq(void *taskparameter) {
// end of time critical section: release app irq lock // end of time critical section: release app irq lock
timeSyncPending = false; timeSyncPending = false;
unmask_user_IRQ(); unmask_user_IRQ();
} // infinite while(1) } // infinite while(1)
} }