parent
4bd14ed974
commit
eece5496da
|
@ -317,7 +317,7 @@ int AdcDevice::size() const {
|
||||||
|
|
||||||
int AdcDevice::getAdcValueByIndex(int internalIndex) const {
|
int AdcDevice::getAdcValueByIndex(int internalIndex) const {
|
||||||
if (internalIndex >= size()) {
|
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 0;
|
||||||
}
|
}
|
||||||
return values.adc_data[internalIndex];
|
return values.adc_data[internalIndex];
|
||||||
|
|
Loading…
Reference in New Issue