altos: Get cc1120 packet reception working
[fw/altos] / src / stm / ao_adc_stm.c
index 24a1fdd012a0bc0d68c650c00b429e42942bf91c..ed1d20c9a454eb342f642d69d7125361b2b7c33d 100644 (file)
@@ -60,8 +60,13 @@ static void ao_adc_done(int index)
 #if HAS_MS5607
        if (!ao_ms5607_valid)
                step = 0;
-       ao_data_ring[ao_data_head].ms5607 = ao_ms5607_current;
+       ao_data_ring[ao_data_head].ms5607_raw = ao_ms5607_current;
 #endif 
+#if HAS_HMC5883
+       if (!ao_hmc5883_valid)
+               step = 0;
+       ao_data_ring[ao_data_head].hmc5883 = ao_hmc5883_current;
+#endif
        if (step) {
                ao_data_head = ao_data_ring_next(ao_data_head);
                ao_wakeup((void *) &ao_data_head);