diff options
author | Keith Packard <keithp@keithp.com> | 2009-11-02 21:47:41 -0800 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2009-11-02 23:51:41 -0800 |
commit | f57bea012d4fbca097df0d98fcd30eb4abd9701a (patch) | |
tree | 495c3d3ed0000ee00ae48255e46c69a480490f69 | |
parent | 79718e798e96567f0ba11c61f187e432fdcf95ee (diff) |
Reformat ADC values to show all 16 bits
-rw-r--r-- | src/ao_adc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ao_adc.c b/src/ao_adc.c index d9672671..a8784667 100644 --- a/src/ao_adc.c +++ b/src/ao_adc.c @@ -65,9 +65,9 @@ ao_adc_dump(void) __reentrant { static __xdata struct ao_adc packet; ao_adc_get(&packet); - printf("tick: %5u accel: %4d pres: %4d temp: %4d batt: %4d drogue: %4d main: %4d\n", - packet.tick, packet.accel >> 4, packet.pres >> 4, packet.temp >> 4, - packet.v_batt >> 4, packet.sense_d >> 4, packet.sense_m >> 4); + printf("tick: %5u accel: %5d pres: %5d temp: %5d batt: %5d drogue: %5d main: %5d\n", + packet.tick, packet.accel, packet.pres, packet.temp, + packet.v_batt, packet.sense_d, packet.sense_m); } __code struct ao_cmds ao_adc_cmds[] = { |