Depend directly on product defines instead of trying to guess
Signed-off-by: Keith Packard <keithp@keithp.com>
uint8_t __xdata *a;
sequence = (ADCCON2 & ADCCON2_SCH_MASK) >> ADCCON2_SCH_SHIFT;
uint8_t __xdata *a;
sequence = (ADCCON2 & ADCCON2_SCH_MASK) >> ADCCON2_SCH_SHIFT;
+#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) {
/* TeleMetrum readings */
#if HAS_ACCEL_REF
if (sequence == 2) {
+#if TELEMINI_V_1_0 || TELENANO_V_0_1
/* TeleMini readings */
a = (uint8_t __xdata *) (&ao_data_ring[ao_data_head].adc.pres);
/* TeleMini readings */
a = (uint8_t __xdata *) (&ao_data_ring[ao_data_head].adc.pres);
switch (sequence) {
case 0:
/* pressure */
switch (sequence) {
case 0:
/* pressure */
/* Start next conversion */
ADCCON3 = sequence;
}
/* Start next conversion */
ADCCON3 = sequence;
}
+#endif /* telemini || telenano */
+
#ifndef GOT_ADC
#error No known ADC configuration set
#endif
#ifndef GOT_ADC
#error No known ADC configuration set
#endif