From eece5496daaa958511030e7d3acad0b0e68f00e7 Mon Sep 17 00:00:00 2001 From: rusefi Date: Sun, 22 Nov 2020 12:57:04 -0500 Subject: [PATCH] ADC: fixes: #1979 more detailed error message --- firmware/hw_layer/adc/adc_inputs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/firmware/hw_layer/adc/adc_inputs.cpp b/firmware/hw_layer/adc/adc_inputs.cpp index 00aa05c14c..6b9ce1a8b4 100644 --- a/firmware/hw_layer/adc/adc_inputs.cpp +++ b/firmware/hw_layer/adc/adc_inputs.cpp @@ -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];