The Big Refactoring of 2019: scheduler should not be global #655
This commit is contained in:
parent
9ddea58e47
commit
8b74ccf8bd
|
@ -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--;
|
||||
|
|
Loading…
Reference in New Issue