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>
void
ao_report_altitude(void)
{
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)
__pdata uint8_t ndigits, i;
if (agl < 0)