altos: Record all failed sensors and report status at power up
[fw/altos] / src / kernel / ao_data.h
index 5a340c3f3b4526f5700ba487063368dcb5602f9c..4fc9db8f16a7810ba8b54c89619bf9331f97608e 100644 (file)
@@ -142,6 +142,12 @@ extern volatile uint8_t            ao_data_count;
  */
 #define AO_DATA_PRESENT(bit)   (ao_data_present |= (bit))
 
+/*
+ * Mark sensor failed, and unblock the sample collection code by
+ * marking the data as present
+ */
+#define AO_SENSOR_ERROR(bit)   (ao_data_present |= (ao_sensor_errors |= (bit)))
+
 /*
  * Wait until it is time to write a sensor sample; this is
  * signaled by the timer tick