mirror of https://github.com/rusefi/rusefi-1.git
ETB target is using integer values #945
refactoring - ADC mocking is a mess
This commit is contained in:
parent
7d65f1931e
commit
e99955fce5
|
@ -246,7 +246,7 @@ SensorsState::SensorsState() {
|
|||
}
|
||||
|
||||
int MockAdcState::getMockAdcValue(int hwChannel) const {
|
||||
efiAssertVoid(OBD_PCM_Processor_Fault, hwChannel >= 0 && hwChannel < MOCK_ADC_SIZE, "hwChannel out of bounds");
|
||||
efiAssert(OBD_PCM_Processor_Fault, hwChannel >= 0 && hwChannel < MOCK_ADC_SIZE, "hwChannel out of bounds", -1);
|
||||
return fakeAdcValues[hwChannel];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue