making gcc8 happier?

This commit is contained in:
rusefi 2019-03-02 18:41:25 -05:00
parent e4bf065222
commit 3d53c9911d
1 changed files with 2 additions and 2 deletions

View File

@ -518,8 +518,8 @@ void AdcDevice::enableChannelAndPin(adc_channel_e hwChannel) {
initAdcHwChannel(hwChannel);
}
static void printAdcValue(adc_channel_e channel) {
int value = getAdcValue("print", channel);
static void printAdcValue(int channel) {
int value = getAdcValue("print", (adc_channel_e)channel);
float volts = adcToVoltsDivided(value);
scheduleMsg(&logger, "adc voltage : %.2f", volts);
}