altos: Fixup named ADC printing
authorKeith Packard <keithp@keithp.com>
Sun, 9 Feb 2014 06:02:02 +0000 (22:02 -0800)
committerKeith Packard <keithp@keithp.com>
Sun, 9 Feb 2014 06:02:18 +0000 (22:02 -0800)
Print all ADC values on one line when using named ADC values

Signed-off-by: Keith Packard <keithp@keithp.com>
src/stm/ao_adc_stm.c

index 17ff344d3a228ee9310bbf009bfeefaa665692be..67416a9d43ae9a5a2fec6f3f03f5dcd85031b8fd 100644 (file)
@@ -190,7 +190,7 @@ ao_adc_dump(void) __reentrant
        for (i = 0; i < AO_NUM_ADC; i++) {
 #ifdef AO_ADC_SQ1_NAME
                if (ao_adc_name[i])
-                       printf ("\t%s: %5d\n", ao_adc_name[i], d[i]);
+                       printf (" %s: %5d", ao_adc_name[i], d[i]);
                else            
 #endif
                        printf (" %2d: %5d", i, d[i]);