mirror of https://github.com/FOME-Tech/fome-fw.git
auto-sync
This commit is contained in:
parent
a2e6b98492
commit
065ef583ce
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue