включены часы реального времени после инициализаци модема ( FIX )
This commit is contained in:
parent
4fce5e5e75
commit
66384be2d9
|
|
@ -36,7 +36,9 @@ static void parser (char *buf,struct tm *time)
|
|||
time->tm_mday=day;
|
||||
time->tm_hour=hour;
|
||||
time->tm_min=min;
|
||||
time->tm_sec=sec;}
|
||||
time->tm_sec=sec;
|
||||
}
|
||||
|
||||
AtCommandResult AtGsm_GetTime (tAtCmd *env,struct tm *time)
|
||||
{
|
||||
char buf[20];
|
||||
|
|
@ -47,9 +49,6 @@ AtCommandResult AtGsm_GetTime (tAtCmd *env,struct tm *time)
|
|||
AtCmdPrepare(env);
|
||||
|
||||
AtCmdSendStatic(env, "AT+CCLK?\r\n");
|
||||
|
||||
|
||||
|
||||
while ((AtCmdReceiveNextLine(env, leftMs) == AT_OK) && (SystemGetMs() < endMs)) {
|
||||
leftMs = endMs - SystemGetMs();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue