FreeCalypso > hg > freecalypso-tools
comparison uptools/atcmd/settime.c @ 467:dc2fd8e6f42c
uptools/atcmd: null pointer passing fixes
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Mon, 11 Feb 2019 22:17:46 +0000 |
parents | 19e5a3e2f9c0 |
children |
comparison
equal
deleted
inserted
replaced
466:5bcf12be0834 | 467:dc2fd8e6f42c |
---|---|
31 time(&unixtime); | 31 time(&unixtime); |
32 tm = localtime(&unixtime); | 32 tm = localtime(&unixtime); |
33 sprintf(command, "AT+CCLK=\"%02d/%02d/%02d,%02d:%02d:%02d%+03d\"", | 33 sprintf(command, "AT+CCLK=\"%02d/%02d/%02d,%02d:%02d:%02d%+03d\"", |
34 tm->tm_year % 100, tm->tm_mon + 1, tm->tm_mday, | 34 tm->tm_year % 100, tm->tm_mon + 1, tm->tm_mday, |
35 tm->tm_hour, tm->tm_min, tm->tm_sec, tm->tm_gmtoff / (15*60)); | 35 tm->tm_hour, tm->tm_min, tm->tm_sec, tm->tm_gmtoff / (15*60)); |
36 atinterf_exec_cmd_needok(command, 0, 0); | 36 atinterf_exec_cmd_needok(command, (char *) 0, (void *) 0); |
37 exit(0); | 37 exit(0); |
38 } | 38 } |