altosui: Remove a bunch of debug printfs from the eeprom manager code
[fw/altos] / src / ao_report.c
index 4646fb0982d02258f286ac44a317e89e024c3882..4f7fd65786743fef7ba86b5fa3794c40b83bb545 100644 (file)
@@ -78,7 +78,7 @@ ao_report_digit(uint8_t digit) __reentrant
        } else {
                while (digit--) {
                        mid(AO_MS_TO_TICKS(200));
-                       mid(AO_MS_TO_TICKS(200));
+                       pause(AO_MS_TO_TICKS(200));
                }
        }
        pause(AO_MS_TO_TICKS(300));
@@ -87,7 +87,7 @@ ao_report_digit(uint8_t digit) __reentrant
 static void
 ao_report_altitude(void)
 {
-       __xdata int16_t agl = ao_pres_to_altitude(ao_min_pres) - ao_pres_to_altitude(ao_ground_pres);
+       __xdata int16_t agl = ao_max_height;
        __xdata uint8_t digits[10];
        __xdata uint8_t ndigits, i;