From 3a52b14502f3639b7585efbd60b0a39694bac5de Mon Sep 17 00:00:00 2001 From: rusefi Date: Wed, 9 Jan 2019 09:39:02 -0500 Subject: [PATCH] The Big Refactoring of 2019: scheduler should not be global #655 --- firmware/controllers/system/pwm_generator_logic.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/firmware/controllers/system/pwm_generator_logic.cpp b/firmware/controllers/system/pwm_generator_logic.cpp index 985d8472a7..473813d077 100644 --- a/firmware/controllers/system/pwm_generator_logic.cpp +++ b/firmware/controllers/system/pwm_generator_logic.cpp @@ -223,10 +223,10 @@ static void timerCallback(PwmConfig *state) { efiAssertVoid(CUSTOM_ERR_6581, state->dbgNestingLevel < 25, "PWM nesting issue"); efitimeus_t switchTimeUs = state->togglePwmState(); - if (state->executor == NULL) { +// if (state->executor == NULL) { // firmwareError(CUSTOM_ERR_6695, "exec on %s", state->name); // return; - } +// } state->executor->scheduleByTimestamp(&state->scheduling, switchTimeUs, (schfunc_t) timerCallback, state); state->dbgNestingLevel--;