auto-sync

This commit is contained in:
rusEfi 2016-08-09 21:03:16 -04:00
parent a2e6b98492
commit 065ef583ce
1 changed files with 1 additions and 1 deletions

View File

@ -111,7 +111,7 @@ void printDateTime(void) {
void setDateTime(const char *strDate) {
if (strlen(strDate) > 0) {
time_t unix_time = (double) atoff(strDate);
time_t unix_time = atoi(strDate);
if (unix_time > 0) {
rtcSetTimeUnixSec(&RTCD1, unix_time);
printDateTime();