From bbab25a37898d0679f6793cbeaa8437a14e481fc Mon Sep 17 00:00:00 2001 From: rusefillc Date: Thu, 26 Oct 2023 22:42:21 -0400 Subject: [PATCH] only: docs --- firmware/controllers/system/timer/pwm_generator_logic.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/firmware/controllers/system/timer/pwm_generator_logic.cpp b/firmware/controllers/system/timer/pwm_generator_logic.cpp index 6fbf5bdee4..02eca29f79 100644 --- a/firmware/controllers/system/timer/pwm_generator_logic.cpp +++ b/firmware/controllers/system/timer/pwm_generator_logic.cpp @@ -294,6 +294,7 @@ void PwmConfig::weComplexInit(ExecutorInterface *executor, this->executor = executor; isStopRequested = false; + // NaN is 'not initialized' but zero is not expected criticalAssertVoid(periodNt != 0, "period is not initialized"); criticalAssertVoid(seq->phaseCount != 0, "signal length cannot be zero"); criticalAssertVoid(seq->phaseCount <= PWM_PHASE_MAX_COUNT, "too many phases in PWM");