From fc7e1f897a1e96a882bc43ce0f3f5f8f2a9937af Mon Sep 17 00:00:00 2001 From: rusefi Date: Wed, 26 Apr 2017 12:03:55 -0400 Subject: [PATCH] icuStartCapture panic better state validation --- firmware/hw_layer/trigger_input.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/firmware/hw_layer/trigger_input.cpp b/firmware/hw_layer/trigger_input.cpp index 34c7a3c0b5..95d89732f7 100644 --- a/firmware/hw_layer/trigger_input.cpp +++ b/firmware/hw_layer/trigger_input.cpp @@ -123,8 +123,8 @@ static ICUDriver *turnOnTriggerInputPin(const char *msg, brain_pin_e hwPin, ICUC efiIcuStart(driver, icucfg); if (driver->state == ICU_READY) { - efiAssertVoid(driver != NULL, "ti: driver is NULL"); - efiAssertVoid(driver->state == ICU_READY, "ti: driver not ready"); + efiAssert(driver != NULL, "ti: driver is NULL", NULL); + efiAssert(driver->state == ICU_READY, "ti: driver not ready", NULL); icuStartCapture(driver); // this would change state from READY to WAITING icuEnableNotifications(driver); } else {