[sysime]Bug85553
Change-Id: If4fbf839e72379d572178031b0daabb495ac46e3
diff --git a/mbtk/liblynq_lib/src/lynq_time.c b/mbtk/liblynq_lib/src/lynq_time.c
index b7a5d41..16933b4 100644
--- a/mbtk/liblynq_lib/src/lynq_time.c
+++ b/mbtk/liblynq_lib/src/lynq_time.c
@@ -100,8 +100,11 @@
{
char time_str[100] = {0};
time_t time = 0;
- while((time = (time_t)mbtk_at_systime()) == 0) {
- usleep(100000);
+ while((time = (time_t)mbtk_at_systime()) == 0)
+ {
+ printf("NTP client fail!\n");
+ LOGI("NTP client fail!\n");
+ return NULL;
}
struct tm *tm_t;
tm_t = localtime(&time);