altos: Declare cc1111 accel_ref as unsigned so the math works
[fw/altos] / src / cc1111 / ao_arch.h
index 44116b812d9a07820a41c99d24089e1790ebc5b5..8d9e49529769fc9bdf6836a731380c6ca7d96a96 100644 (file)
@@ -205,7 +205,9 @@ struct ao_adc {
        int16_t         v_batt;         /* battery voltage */
        int16_t         sense_d;        /* drogue continuity sense */
        int16_t         sense_m;        /* main continuity sense */
-       int16_t         accel_ref;      /* acceleration reference */
+#if HAS_ACCEL_REF
+       uint16_t        accel_ref;      /* acceleration reference */
+#endif
 };
 
 #define AO_DATA_RING   32