code sanitizations
This commit is contained in:
parent
f05acd32a8
commit
85425e22de
@ -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;
|
||||
|
@ -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) {
|
||||
|
@ -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)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user