FreeCalypso > hg > fc-magnetite
comparison src/aci2/aci/ati_fchg.c @ 565:96c1d047b3c6
aci2: AT%VBAT and melody play enhancements matching aci3
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Mon, 07 Jan 2019 01:06:46 +0000 |
parents | 09b12bd1b0f2 |
children |
comparison
equal
deleted
inserted
replaced
564:ade27cd84b97 | 565:96c1d047b3c6 |
---|---|
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 */ |