altos: Switch ao_report.c __xdata to __pdata
authorKeith Packard <keithp@keithp.com>
Wed, 6 Jul 2011 22:37:15 +0000 (15:37 -0700)
committerKeith Packard <keithp@keithp.com>
Wed, 6 Jul 2011 22:48:34 +0000 (15:48 -0700)
Signed-off-by: Keith Packard <keithp@keithp.com>
src/ao_report.c

index b9dc5bb419979d5d5f960a67f23aa89eba186fad..3cf558e1d97ff9d72018fe0f14167f2c6702d9e1 100644 (file)
@@ -48,7 +48,7 @@ static const uint8_t flight_reports[] = {
 #endif
 #define pause(time)    ao_delay(time)
 
-static __xdata enum ao_flight_state ao_report_state;
+static __pdata enum ao_flight_state ao_report_state;
 
 static void
 ao_report_beep(void) __reentrant
@@ -87,9 +87,9 @@ ao_report_digit(uint8_t digit) __reentrant
 static void
 ao_report_altitude(void)
 {
-       __xdata int16_t agl = ao_max_height;
+       __pdata int16_t agl = ao_max_height;
        __xdata uint8_t digits[10];
-       __xdata uint8_t ndigits, i;
+       __pdata uint8_t ndigits, i;
 
        if (agl < 0)
                agl = 0;