format drv_adc
@@ -115,7 +115,8 @@ uint16_t readADC1(int channel){
}
ADC_SoftwareStartConv(ADC1); // Start the conversion
adc_channel_synchronizer++; // Advance the index
- if (adc_channel_synchronizer == ADC_CHANNELS ) adc_channel_synchronizer = 0; // Start the index over if we reached the end of the list
+ if (adc_channel_synchronizer == ADC_CHANNELS)
+ adc_channel_synchronizer = 0; // Start the index over if we reached the end of the list
}
return adc_array[channel];
}
