From e99955fce5db656d33212a74b159311c49aedf32 Mon Sep 17 00:00:00 2001 From: rusefi Date: Sun, 22 Sep 2019 17:43:00 -0400 Subject: [PATCH] ETB target is using integer values #945 refactoring - ADC mocking is a mess --- firmware/controllers/algo/engine2.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/firmware/controllers/algo/engine2.cpp b/firmware/controllers/algo/engine2.cpp index 416a7a9d1a..9def649f97 100644 --- a/firmware/controllers/algo/engine2.cpp +++ b/firmware/controllers/algo/engine2.cpp @@ -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]; }