altos: Remove unused ao_adc_get from ao_adc_stm.c
authorKeith Packard <keithp@keithp.com>
Tue, 5 Feb 2019 06:34:21 +0000 (22:34 -0800)
committerKeith Packard <keithp@keithp.com>
Mon, 18 Feb 2019 21:08:23 +0000 (13:08 -0800)
Signed-off-by: Keith Packard <keithp@keithp.com>
src/stm/ao_adc_stm.c

index ffdcccc..8c827aa 100644 (file)
@@ -77,20 +77,6 @@ ao_adc_poll(void)
        stm_adc.cr2 = AO_ADC_CR2_VAL | (1 << STM_ADC_CR2_SWSTART);
 }
 
-/*
- * Fetch a copy of the most recent ADC data
- */
-void
-ao_adc_get(struct ao_adc *packet)
-{
-#if HAS_FLIGHT
-       uint8_t i = ao_data_ring_prev(ao_sample_data);
-#else
-       uint8_t i = ao_data_ring_prev(ao_data_head);
-#endif
-       memcpy(packet, (void *) &ao_data_ring[i].adc, sizeof (struct ao_adc));
-}
-
 #ifdef AO_ADC_SQ1_NAME
 static const char *ao_adc_name[AO_NUM_ADC] = {
        AO_ADC_SQ1_NAME,