[Feature][ZXW50][systime] liblynq-systime modem_sync_time realize
Only Configure:No
Affected branch:master
Affected module:systime
Is it affected on both ZXIC and MTK:Only ZXIC
Self-test: Yes
Doc Update:No
Change-Id: I1522f07cee52745234f303155fab7d9edeb487e1
diff --git a/ap/app/zte_comm/at_ctl/src/atconfig/ps_normal.c b/ap/app/zte_comm/at_ctl/src/atconfig/ps_normal.c
index a814119..dec4edf 100755
--- a/ap/app/zte_comm/at_ctl/src/atconfig/ps_normal.c
+++ b/ap/app/zte_comm/at_ctl/src/atconfig/ps_normal.c
@@ -117,6 +117,14 @@
void *p[5] = {&timeinfo.time_zone, &timeinfo.sav_time, temp1, temp2, timeinfo.univer_time};
int time_zone = 0;
+ //>>>sj.zhang add @2023-08-10 for systime NITZ sync enable/disenable.
+ if(0 != system("uci get lynq_uci.lynq_sync_time.lynq_modem_sync_time_enable | grep -E \'^1$\'"))
+ {
+ at_print(AT_ERR,"zmmi_auto_act: nitz disenabled. \n");
+ return AT_END;
+ }
+ //>>>sj.zhang add @2023-08-10 end.
+
#ifndef USE_CAP_SUPPORT
sc_cfg_get("sntp_time_set_mode", mode, sizeof(mode));
if (strcmp(mode, "manual") == 0)