FreeCalypso > hg > fc-magnetite
changeset 314:a90812ea82c9
AT%A output changed from hex to decimal with more descriptive names
fixed C sequence points violation while at it
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Wed, 15 Nov 2017 07:22:06 +0000 |
parents | 5b1358df7e3c |
children | 8cc745104906 |
files | src/cs/services/cst/cst_exts.c |
diffstat | 1 files changed, 6 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/cs/services/cst/cst_exts.c Sat Nov 04 19:40:20 2017 +0000 +++ b/src/cs/services/cst/cst_exts.c Wed Nov 15 07:22:06 2017 +0000 @@ -296,12 +296,16 @@ UCHAR size; adc_conversion = csf_return_adc (); -#ifdef ALR +#if 1 /* FreeCalypso change */ + sprintf (buf, "VBAT=%u, VCHG=%u, ICHG=%u, VBACKUP=%u, ADIN1=%u, ADIN2=%u, ADIN3=%u, RFTEMP=%u, ADIN5=%u", + adc_conversion[0], adc_conversion[1], adc_conversion[2], + adc_conversion[3], adc_conversion[4], adc_conversion[5], + adc_conversion[6], adc_conversion[7], adc_conversion[8]); +#elif defined(ALR) sprintf (buf, "ADC 0 = %x, ADC 1 = %x, ADC 2 = %x, ADC 3 = %x, ADC 4 = %x, ADC 5 = %x, ADC 6 = %x, ADC 7 = %x, ADC 8 = %x", *adc_conversion++, *adc_conversion++, *adc_conversion++, *adc_conversion++, *adc_conversion++, *adc_conversion++, *adc_conversion++, *adc_conversion++, *adc_conversion); - #else sprintf (buf, "ADC 0 = %x, ADC 1 = %x, ADC 2 = %x, ADC 3 = %x, ADC 4 = %x", *adc_conversion++, *adc_conversion++, *adc_conversion++,