altos: Send serial/flight to companion board
[fw/altos] / src / ao_adc.c
index d77e775331141b7bbdc38ce37aadd78dcf174476..786dfd11d292dc45830061eca1d380554d4ef5ba 100644 (file)
@@ -41,7 +41,7 @@ ao_adc_poll(void)
 void
 ao_adc_get(__xdata struct ao_adc *packet)
 {
-       uint8_t i = ao_adc_ring_prev(ao_flight_adc);
+       uint8_t i = ao_adc_ring_prev(ao_sample_adc);
        memcpy(packet, &ao_adc_ring[i], sizeof (struct ao_adc));
 }
 
@@ -84,7 +84,7 @@ ao_adc_isr(void) __interrupt 1
 #if IGNITE_ON_P0
        /* TeleMini readings */
        a = (uint8_t __xdata *) (&ao_adc_ring[ao_adc_head].pres);
-#ifdef TELEMINI_V_0_1
+#ifdef TELEMINI_V_1_0
        switch (sequence) {
        case 0:
                /* pressure */
@@ -162,7 +162,7 @@ ao_adc_dump(void) __reentrant
 }
 
 __code struct ao_cmds ao_adc_cmds[] = {
-       { ao_adc_dump,  "a\0Display current ADC values" },
+       { ao_adc_dump,  "a\0Current ADC" },
        { 0, NULL },
 };