diff --git a/AtCommandsSrc/AtGsm_GetTime.c b/AtCommandsSrc/AtGsm_GetTime.c index 44cf330..54cf40c 100644 --- a/AtCommandsSrc/AtGsm_GetTime.c +++ b/AtCommandsSrc/AtGsm_GetTime.c @@ -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();