commit | 9b9a928e565fc3bb1647c9e3a62b1ea21b1bdaf3 | [log] [tgz] |
---|---|---|
author | luojian <j.luo@mobiletek.cn> | Thu Jul 04 18:56:21 2024 +0800 |
committer | luojian <j.luo@mobiletek.cn> | Thu Jul 04 18:56:21 2024 +0800 |
tree | eb92484f6111af661c2b80cf38ce5b406ae33088 | |
parent | 3947b302750c01fe1402d37431eea475e8e7e548 [diff] [blame] |
add rtc function Change-Id: I30f58c6c2081d02d70f4519370eef12e7a559d8b
diff --git a/mbtk/liblynq_lib/src/lynq_time.c b/mbtk/liblynq_lib/src/lynq_time.c index 55f3ef3..8f432f0 100644 --- a/mbtk/liblynq_lib/src/lynq_time.c +++ b/mbtk/liblynq_lib/src/lynq_time.c
@@ -303,7 +303,8 @@ // system time set to RTC int lynq_set_rtc_time(void) { - system("hwclock --systohc"); +// system("hwclock --systohc"); + system("hwclock -w rtc0"); return 0; }