diff --git a/firmware/hw_layer/microsecond_timer.cpp b/firmware/hw_layer/microsecond_timer.cpp index fc8ad73034..71d5863a57 100644 --- a/firmware/hw_layer/microsecond_timer.cpp +++ b/firmware/hw_layer/microsecond_timer.cpp @@ -72,7 +72,10 @@ void setHardwareUsTimer(int32_t timeUs) { if (GPTDEVICE.state == GPT_ONESHOT) gptStopTimerI(&GPTDEVICE); - efiAssertVoid(GPTDEVICE.state == GPT_READY, "hw timer"); + if (GPTDEVICE.state != GPT_READY) { + firmwareError(CUSTOM_ERR_6541, "HW timer state %d", GPTDEVICE.state); + return; + } if (hasFirmwareError()) return; gptStartOneShotI(&GPTDEVICE, timeUs);