uint8_t __xdata *a;
sequence = (ADCCON2 & ADCCON2_SCH_MASK) >> ADCCON2_SCH_SHIFT;
-#if IGNITE_ON_P2
+#if TELEMETRUM_V_0_1 || TELEMETRUM_V_0_2 || TELEMETRUM_V_1_0 || TELEMETRUM_V_1_1 || TELEMETRUM_V_1_2 || TELELAUNCH_V_0_1
/* TeleMetrum readings */
#if HAS_ACCEL_REF
if (sequence == 2) {
- a = (uint8_t __xdata *) (&ao_data_ring[ao_data_head].accel_ref);
+ a = (uint8_t __xdata *) (&ao_data_ring[ao_data_head].adc.accel_ref);
sequence = 0;
} else
#endif
}
#endif
-#if IGNITE_ON_P0
+#if TELEMINI_V_1_0 || TELENANO_V_0_1
/* TeleMini readings */
a = (uint8_t __xdata *) (&ao_data_ring[ao_data_head].adc.pres);
-#ifdef TELEMINI_V_1_0
+#if TELEMINI_V_1_0
switch (sequence) {
case 0:
/* pressure */
/* Start next conversion */
ADCCON3 = sequence;
}
-#endif
+#endif /* telemini || telenano */
+
#ifndef GOT_ADC
#error No known ADC configuration set
#endif