FreeCalypso > hg > fc-magnetite
comparison src/aci2/aci/ati_fchg.c @ 348:d719315db04a
ati_fchg.c: sprintf % bug
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sat, 16 Dec 2017 00:46:46 +0000 |
parents | 78d1df0b8487 |
children | 09b12bd1b0f2 |
comparison
equal
deleted
inserted
replaced
347:78d1df0b8487 | 348:d719315db04a |
---|---|
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", fchg.chg_state, fchg.batt_mv, |
74 fchg.batt_percent); | 74 fchg.batt_percent); |
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 |