comparison src/g23m-aci/aci/ati_fchg.c @ 562:adae731ae50d

aci3: implemented AT%VBAT command independent of FCHG
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 06 Jan 2019 22:33:33 +0000
parents 9a237d51c226
children
comparison
equal deleted inserted replaced
561:dc1e0a1c100f 562:adae731ae50d
91 return ATI_FAIL; 91 return ATI_FAIL;
92 } 92 }
93 93
94 #endif /* RVM_FCHG_SWE */ 94 #endif /* RVM_FCHG_SWE */
95 95
96 /* AT%VBAT - retrieve VBAT measurement, independent of FCHG */
97 GLOBAL T_ATI_RSLT atPercentVBAT ( char *cl, UBYTE srcId )
98 {
99 extern USHORT *csf_return_adc(void);
100 USHORT *adc_conversion;
101
102 TRACE_FUNCTION("atPercentVBAT()");
103 adc_conversion = csf_return_adc();
104 sprintf(g_sa, "%%VBAT: %u", adc_conversion[0]);
105 io_sendMessage(srcId, g_sa, ATI_NORMAL_OUTPUT);
106 return ATI_CMPL;
107 }
108
96 #endif /* ATI_FCHG_C */ 109 #endif /* ATI_FCHG_C */