altos: Record all failed sensors and report status at power up
[fw/altos] / src / kernel / ao_report.c
index 872dcd48cea9c237a6a1cf974f1980a5fab7dfe3..12c3a1e90acabb589114ed786edb08caf9a7c0fb 100644 (file)
@@ -262,6 +262,11 @@ ao_report(void)
                else
 #endif
                        ao_report_beep();
+#if HAS_SENSOR_ERRORS
+               if (ao_report_state == ao_flight_invalid && ao_sensor_errors)
+                       ao_report_number(ao_sensor_errors);
+#endif
+
                if (ao_report_state == ao_flight_landed) {
                        ao_report_altitude();
 #if HAS_FLIGHT