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");
|
efiAssertVoid(CUSTOM_ERR_6581, state->dbgNestingLevel < 25, "PWM nesting issue");
|
||||||
|
|
||||||
efitimeus_t switchTimeUs = state->togglePwmState();
|
efitimeus_t switchTimeUs = state->togglePwmState();
|
||||||
if (state->executor == NULL) {
|
// if (state->executor == NULL) {
|
||||||
// firmwareError(CUSTOM_ERR_6695, "exec on %s", state->name);
|
// firmwareError(CUSTOM_ERR_6695, "exec on %s", state->name);
|
||||||
// return;
|
// return;
|
||||||
}
|
// }
|
||||||
|
|
||||||
state->executor->scheduleByTimestamp(&state->scheduling, switchTimeUs, (schfunc_t) timerCallback, state);
|
state->executor->scheduleByTimestamp(&state->scheduling, switchTimeUs, (schfunc_t) timerCallback, state);
|
||||||
state->dbgNestingLevel--;
|
state->dbgNestingLevel--;
|
||||||
|
|
Loading…
Reference in New Issue