FreeCalypso > hg > fc-tourmaline
diff src/cs/drivers/drv_app/power/board/power.c @ 239:305d3bb691a5
FCHG startup: replace fchg_is_running with fchg_first_vbat
and also report the first Vbat reading in a trace
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sun, 02 May 2021 05:30:59 +0000 |
parents | 740a8e8fc9d7 |
children | 184a031e38e6 |
line wrap: on
line diff
--- a/src/cs/drivers/drv_app/power/board/power.c Sun May 02 04:36:25 2021 +0000 +++ b/src/cs/drivers/drv_app/power/board/power.c Sun May 02 05:30:59 2021 +0000 @@ -53,9 +53,10 @@ { #if (MMI != 0) extern void fchs_pwon_button_boot(void); - extern int fchg_is_running, r2d_is_running, mmi_task_init_done; + extern int r2d_is_running, mmi_task_init_done; + extern UINT16 fchg_first_vbat; - while (!fchg_is_running || !r2d_is_running || !mmi_task_init_done) + while (!fchg_first_vbat || !r2d_is_running || !mmi_task_init_done) rvf_delay(8); fchs_pwon_button_boot();