FreeCalypso > hg > fc-tourmaline
comparison src/g23m-aci/aci/ati_fchg.c @ 62:089c1882788c
AT%CBC extended to report Ichg
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Thu, 22 Oct 2020 22:37:31 +0000 |
parents | fa8dc04885d8 |
children |
comparison
equal
deleted
inserted
replaced
61:75067af48bfd | 62:089c1882788c |
---|---|
68 struct fchg_user_state fchg; | 68 struct fchg_user_state fchg; |
69 | 69 |
70 TRACE_FUNCTION("atPercentCBC()"); | 70 TRACE_FUNCTION("atPercentCBC()"); |
71 if (fchg_get_current_state(&fchg) != RV_OK) | 71 if (fchg_get_current_state(&fchg) != RV_OK) |
72 return ATI_FAIL; | 72 return ATI_FAIL; |
73 sprintf(g_sa, "%%CBC: %d,%d,%d", fchg.chg_state, fchg.batt_mv, | 73 sprintf(g_sa, "%%CBC: %d,%d,%d,%d", fchg.chg_state, fchg.batt_mv, |
74 fchg.batt_percent); | 74 fchg.batt_percent, fchg.ichg); |
75 io_sendMessage(srcId, g_sa, ATI_NORMAL_OUTPUT); | 75 io_sendMessage(srcId, g_sa, ATI_NORMAL_OUTPUT); |
76 return ATI_CMPL; | 76 return ATI_CMPL; |
77 } | 77 } |
78 | 78 |
79 /* AT@CHG - manual control of battery charging */ | 79 /* AT@CHG - manual control of battery charging */ |