commit | 1ce96dfceb3af09914e5875e354feb86cffb8561 | [log] [tgz] |
---|---|---|
author | liuyang <leo.liu@mobiletek.cn> | Wed May 29 19:14:34 2024 +0800 |
committer | liuyang <leo.liu@mobiletek.cn> | Wed May 29 19:14:34 2024 +0800 |
tree | d57319dccf885dec870b5682705bddc344432715 | |
parent | be08cdac2315a5e6d2eb165ab35063fd7c8eb89c [diff] [blame] |
Bug 86852 - 【systime】ntp的enable容错问题,可以传错误的值 Change-Id: Ife9e5d2a07319a153f230cf9351d0d0034438eb9
diff --git a/mbtk/liblynq_lib/src/lynq_time.c b/mbtk/liblynq_lib/src/lynq_time.c index 71fd9e3..55f3ef3 100644 --- a/mbtk/liblynq_lib/src/lynq_time.c +++ b/mbtk/liblynq_lib/src/lynq_time.c
@@ -162,6 +162,10 @@ int ntp_sync_time(int enable) { + if(0 != enable && 1 != enable) + { + return -1; + } UNUSED(enable); int ntp_status = 0; if(enable)