commit | d0f7fdb67e7f941599de51e71bea09f6daef9ef7 | [log] [tgz] |
---|---|---|
author | liuyang <leo.liu@mobiletek.cn> | Mon Apr 22 13:53:23 2024 +0800 |
committer | liuyang <leo.liu@mobiletek.cn> | Mon Apr 22 14:29:01 2024 +0800 |
tree | 55f7e4638cd9ec064b63ecd3a1057cc7163ed4e6 | |
parent | 545829083345870d6f0c17c3216d0adca78f3d47 [diff] [blame] |
[sysime]Bug85553 patch 2 Change-Id: I630a0f1fcc79830b911ead907910f76514449b85
diff --git a/mbtk/liblynq_lib/src/lynq_time.c b/mbtk/liblynq_lib/src/lynq_time.c index 16933b4..8427174 100644 --- a/mbtk/liblynq_lib/src/lynq_time.c +++ b/mbtk/liblynq_lib/src/lynq_time.c
@@ -100,10 +100,9 @@ { char time_str[100] = {0}; time_t time = 0; - while((time = (time_t)mbtk_at_systime()) == 0) + if((time = (time_t)mbtk_at_systime()) == 0) { printf("NTP client fail!\n"); - LOGI("NTP client fail!\n"); return NULL; } struct tm *tm_t;