icuStartCapture panic better state validation
This commit is contained in:
parent
37e517849b
commit
4ff04533eb
|
@ -123,8 +123,8 @@ static ICUDriver *turnOnTriggerInputPin(const char *msg, brain_pin_e hwPin, ICUC
|
||||||
|
|
||||||
efiIcuStart(driver, icucfg);
|
efiIcuStart(driver, icucfg);
|
||||||
if (driver->state == ICU_READY) {
|
if (driver->state == ICU_READY) {
|
||||||
efiAssertVoid(driver != NULL, "ti: driver is NULL");
|
efiAssert(driver != NULL, "ti: driver is NULL", NULL);
|
||||||
efiAssertVoid(driver->state == ICU_READY, "ti: driver not ready");
|
efiAssert(driver->state == ICU_READY, "ti: driver not ready", NULL);
|
||||||
icuStartCapture(driver); // this would change state from READY to WAITING
|
icuStartCapture(driver); // this would change state from READY to WAITING
|
||||||
icuEnableNotifications(driver);
|
icuEnableNotifications(driver);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue