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
This commit is contained in:
parent
cadd0be089
commit
e91605ce48
|
@ -258,10 +258,12 @@ static void *alarm_thread(void *)
|
||||||
* set by user
|
* set by user
|
||||||
*/
|
*/
|
||||||
rc = alarm_get_time(ALARM_TIME, &alm_secs);
|
rc = alarm_get_time(ALARM_TIME, &alm_secs);
|
||||||
|
LOGI("RTC Alarm %ld\n", alm_secs);
|
||||||
if (rc < 0 || !alm_secs)
|
if (rc < 0 || !alm_secs)
|
||||||
goto err;
|
goto err;
|
||||||
|
|
||||||
rc = alarm_get_time(RTC_TIME, &rtc_secs);
|
rc = alarm_get_time(RTC_TIME, &rtc_secs);
|
||||||
|
LOGI("RTC Clock %ld\n", rtc_secs);
|
||||||
if (rc < 0)
|
if (rc < 0)
|
||||||
goto err;
|
goto err;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue