summaryrefslogtreecommitdiffstats
path: root/charger
diff options
context:
space:
mode:
authorAdrian DC <radian.dc@gmail.com>2016-08-14 11:40:05 +0200
committerSteve Kondik <shade@chemlab.org>2016-08-14 21:53:56 -0700
commite91605ce48698337cdbacee158d3a4070b7eceef (patch)
treef9944df7ec7034c6fd99f474eda98086fbadf94f /charger
parentcadd0be0896dcf4af2b263350261cfa9dc98c7da (diff)
downloadvendor_replicant-e91605ce48698337cdbacee158d3a4070b7eceef.zip
vendor_replicant-e91605ce48698337cdbacee158d3a4070b7eceef.tar.gz
vendor_replicant-e91605ce48698337cdbacee158d3a4070b7eceef.tar.bz2
cm: charger: Export the RTC Clock and Alarm timestamps
* Gives easy access to the RTC values in order to verify or debug the current status of the RTC clock and alarm, for example if a user says powered-off alarm doesn't work Change-Id: I47e71433a53a25fe9880e7be6a1f5bdb1105ef78
Diffstat (limited to 'charger')
-rw-r--r--charger/healthd_board_cm.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/charger/healthd_board_cm.cpp b/charger/healthd_board_cm.cpp
index 8d38e5a..10dfddf 100644
--- a/charger/healthd_board_cm.cpp
+++ b/charger/healthd_board_cm.cpp
@@ -258,10 +258,12 @@ static void *alarm_thread(void *)
* set by user
*/
rc = alarm_get_time(ALARM_TIME, &alm_secs);
+ LOGI("RTC Alarm %ld\n", alm_secs);
if (rc < 0 || !alm_secs)
goto err;
rc = alarm_get_time(RTC_TIME, &rtc_secs);
+ LOGI("RTC Clock %ld\n", rtc_secs);
if (rc < 0)
goto err;