partial rollback

This commit is contained in:
rusefi 2020-05-23 17:13:46 -04:00
parent 60bdc852dc
commit f806ca091d
1 changed files with 2 additions and 1 deletions

View File

@ -259,7 +259,8 @@ int getInternalAdcValue(const char *msg, adc_channel_e hwChannel) {
return value;
}
if (adcHwChannelEnabled[hwChannel] != ADC_SLOW) {
firmwareError(CUSTOM_OBD_WRONG_ADC_MODE, "ADC is off [%s] index=%d", msg, hwChannel);
// todo: make this not happen during hardware continues integration
warning(CUSTOM_OBD_WRONG_ADC_MODE, "ADC is off [%s] index=%d", msg, hwChannel);
}
return slowAdc.getAdcValueByHwChannel(hwChannel);