more detailed error message
This commit is contained in:
rusefi 2020-11-22 12:57:04 -05:00
parent 4bd14ed974
commit eece5496da
1 changed files with 1 additions and 1 deletions

View File

@ -317,7 +317,7 @@ int AdcDevice::size() const {
int AdcDevice::getAdcValueByIndex(int internalIndex) const {
if (internalIndex >= size()) {
firmwareError(OBD_PCM_Processor_Fault, "ADC channel index out of range");
firmwareError(OBD_PCM_Processor_Fault, "ADC channel index out of range %d", internalIndex);
return 0;
}
return values.adc_data[internalIndex];