type clean-up to avoid nasty cast

This commit is contained in:
Andrey 2023-09-05 15:33:05 -04:00
parent 1067e27a50
commit c8302be4ae
3 changed files with 3 additions and 3 deletions

View File

@ -330,7 +330,7 @@ void startSimplePwm(SimplePwm *state, const char *msg, ExecutorInterface *execut
state->setFrequency(frequency);
state->setSimplePwmDutyCycle(dutyCycle);
state->weComplexInit(msg, executor, &state->seq, NULL, (pwm_gen_callback*)applyPinState);
state->weComplexInit(msg, executor, &state->seq, NULL, applyPinState);
}
void startSimplePwmExt(SimplePwm *state, const char *msg,

View File

@ -39,7 +39,7 @@ typedef struct {
class PwmConfig;
typedef void (pwm_cycle_callback)(PwmConfig *state);
typedef void (pwm_gen_callback)(int stateIndex, void *arg);
typedef void (pwm_gen_callback)(int stateIndex, PwmConfig *arg);
typedef enum {
PM_ZERO,

View File

@ -170,7 +170,7 @@ static void startSimulatedTriggerSignal() {
triggerEmulatorSignal.weComplexInit("position sensor",
&engine->executor,
&s->wave,
updateTriggerWaveformIfNeeded, (pwm_gen_callback*)emulatorApplyPinState);
updateTriggerWaveformIfNeeded, emulatorApplyPinState);
hasInitTriggerEmulator = true;
}