changeset 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 84d81d34efa2
files src/aci2/aci/aci_cmh.h src/aci2/aci/ati_cmd.c src/aci2/aci/ati_fchg.c
diffstat 3 files changed, 6 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/src/aci2/aci/aci_cmh.h	Sat Dec 16 00:46:46 2017 +0000
+++ b/src/aci2/aci/aci_cmh.h	Sat Dec 16 06:05:53 2017 +0000
@@ -492,7 +492,7 @@
   AT_CMD_AT_VMR,
   AT_CMD_AT_VMRS,
   AT_CMD_P_CBC,
-  AT_CMD_AT_CHARGE,
+  AT_CMD_AT_CHG,
   /* terminator */
   AT_CMD_MAX                  /* maximum command id */
 } T_ACI_AT_CMD;
--- a/src/aci2/aci/ati_cmd.c	Sat Dec 16 00:46:46 2017 +0000
+++ b/src/aci2/aci/ati_cmd.c	Sat Dec 16 06:05:53 2017 +0000
@@ -693,7 +693,7 @@
 EXTERN T_ATI_RSLT atAtVMRS (char *cl, UBYTE srcId);
 #ifdef RVM_FCHG_SWE
 EXTERN T_ATI_RSLT atPercentCBC (char *cl, UBYTE srcId);
-EXTERN T_ATI_RSLT atAtCHARGE (char *cl, UBYTE srcId);
+EXTERN T_ATI_RSLT atAtCHG (char *cl, UBYTE srcId);
 #endif
 
 LOCAL const ATCommand_bas cmds_bas[] =
@@ -1099,7 +1099,7 @@
     {"@VMRS",	AT_CMD_AT_VMRS,  atAtVMRS,	0,	0,	0},
 #ifdef RVM_FCHG_SWE
     {"%CBC",	AT_CMD_P_CBC,    atPercentCBC,	0,	0,	0},
-    {"@CHARGE",	AT_CMD_AT_CHARGE,atAtCHARGE,	0,	0,	"%s: (0,1)"},
+    {"@CHG",	AT_CMD_AT_CHG,   atAtCHG,	0,	0,	"%s: (0,1)"},
 #endif
     /* terminator */
     {NULL,0,0,0,0,0}
--- a/src/aci2/aci/ati_fchg.c	Sat Dec 16 00:46:46 2017 +0000
+++ b/src/aci2/aci/ati_fchg.c	Sat Dec 16 06:05:53 2017 +0000
@@ -76,12 +76,12 @@
 	return ATI_CMPL;
 }
 
-/* AT@CHARGE - manual control of battery charging */
-GLOBAL T_ATI_RSLT atAtCHARGE ( char *cl, UBYTE srcId )
+/* AT@CHG - manual control of battery charging */
+GLOBAL T_ATI_RSLT atAtCHG ( char *cl, UBYTE srcId )
 {
 	enum fchg_user_charge_ctrl ctrl;
 
-	TRACE_FUNCTION("atAtCHARGE()");
+	TRACE_FUNCTION("atAtCHG()");
 	cl = parse(cl, "D", &ctrl);
 	if (!cl)
 		return ATI_FAIL;