diff options
author | Keith Packard <keithp@keithp.com> | 2012-12-09 18:28:33 -0800 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2012-12-09 18:28:33 -0800 |
commit | c233ef67f42c14cb1d0e0542a9523b279f826af5 (patch) | |
tree | 96c887a7430553ec0072f48f99b7d0851c8b047b /src | |
parent | defd5d0784a754be30e3295067fbc85a108ad172 (diff) |
altos: Use alt_t value to hold displayed height in micropeakmicropeak-build-2012-12-09
Heights are 32 bits (to get .1 meter resolution) in micropeak; make
sure we have enough bits while blinking out the computed value.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/micropeak/ao_report_tiny.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/micropeak/ao_report_tiny.c b/src/micropeak/ao_report_tiny.c index 109af1ed..bdcc131e 100644 --- a/src/micropeak/ao_report_tiny.c +++ b/src/micropeak/ao_report_tiny.c @@ -38,8 +38,8 @@ ao_report_digit(uint8_t digit) __reentrant void ao_report_altitude(void) { - __pdata int16_t agl = ao_max_height; - __xdata uint8_t digits[10]; + __pdata alt_t agl = ao_max_height; + static __xdata uint8_t digits[11]; __pdata uint8_t ndigits, i; if (agl < 0) |