comparison src/aci2/aci/ati_fchg.c @ 349:09b12bd1b0f2

charging control AT command: make it AT@CHG instead of AT@CHARGE
author Mychaela Falconia <falcon@freecalypso.org>
date Sat, 16 Dec 2017 06:05:53 +0000
parents d719315db04a
children 96c1d047b3c6
comparison
equal deleted inserted replaced
348:d719315db04a 349:09b12bd1b0f2
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
79 /* AT@CHARGE - manual control of battery charging */ 79 /* AT@CHG - manual control of battery charging */
80 GLOBAL T_ATI_RSLT atAtCHARGE ( char *cl, UBYTE srcId ) 80 GLOBAL T_ATI_RSLT atAtCHG ( char *cl, UBYTE srcId )
81 { 81 {
82 enum fchg_user_charge_ctrl ctrl; 82 enum fchg_user_charge_ctrl ctrl;
83 83
84 TRACE_FUNCTION("atAtCHARGE()"); 84 TRACE_FUNCTION("atAtCHG()");
85 cl = parse(cl, "D", &ctrl); 85 cl = parse(cl, "D", &ctrl);
86 if (!cl) 86 if (!cl)
87 return ATI_FAIL; 87 return ATI_FAIL;
88 if (fchg_user_charge_control(ctrl) == RV_OK) 88 if (fchg_user_charge_control(ctrl) == RV_OK)
89 return ATI_CMPL; 89 return ATI_CMPL;