Skip to content

Commit 01cc777

Browse files
committed
Avoid to store EPOCH_AT_COMPILE_TIME inside RTC register
1 parent bfde58c commit 01cc777

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utility/time/TimeService.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ unsigned long TimeService::getRemoteTime()
302302

303303
bool TimeService::isTimeValid(unsigned long const time)
304304
{
305-
return (time >= EPOCH_AT_COMPILE_TIME);
305+
return (time > EPOCH_AT_COMPILE_TIME);
306306
}
307307

308308
void TimeService::initRTC()

0 commit comments

Comments
 (0)