altos: Clean up warnings for LPC products
[fw/altos] / src / lpc / ao_adc_lpc.c
index 7005f86e62a9d4c51743316b666847e07ba75d19..e1aae0e484d5c726910185e5c15907c41a5932f6 100644 (file)
@@ -149,8 +149,10 @@ static void
 ao_adc_dump(void) __reentrant
 {
        struct ao_data  packet;
+#ifndef AO_ADC_DUMP
        int16_t *d;
        uint8_t i;
+#endif
 
        ao_data_get(&packet);
 #ifdef AO_ADC_DUMP