【修复】sim76xx 中提示 set_date/set_time 未定义错误

Signed-off-by: chenyong <1521761801@qq.com>
This commit is contained in:
chenyong 2019-08-22 09:41:09 +08:00
parent dd11316384
commit 66b9b700b1
1 changed files with 2 additions and 1 deletions

View File

@ -286,7 +286,7 @@ static void sim76xx_init_thread_entry(void *parameter)
result = -RT_ERROR;
goto __exit;
}
#ifdef RT_USING_RTC
/* get real time */
int year, month, day, hour, min, sec;
@ -317,6 +317,7 @@ static void sim76xx_init_thread_entry(void *parameter)
result = -RT_ERROR;
goto __exit;
}
#endif /* RT_USING_RTC */
/* set active PDP context's profile number */
AT_SEND_CMD(client, resp, "AT+CSOCKSETPN=1");