default arguments are cool even while I might not even need it now
This commit is contained in:
parent
70945665e9
commit
464ce6ae50
|
@ -336,11 +336,11 @@ void startSimplePwm(SimplePwm *state, const char *msg, ExecutorInterface *execut
|
|||
void startSimplePwmExt(SimplePwm *state, const char *msg,
|
||||
ExecutorInterface *executor,
|
||||
brain_pin_e brainPin, OutputPin *output, float frequency,
|
||||
float dutyCycle) {
|
||||
float dutyCycle, pwm_gen_callback *callback) {
|
||||
|
||||
output->initPin(msg, brainPin);
|
||||
|
||||
startSimplePwm(state, msg, executor, output, frequency, dutyCycle);
|
||||
startSimplePwm(state, msg, executor, output, frequency, dutyCycle, callback);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -152,7 +152,7 @@ void startSimplePwmExt(SimplePwm *state,
|
|||
const char *msg,
|
||||
ExecutorInterface *executor,
|
||||
brain_pin_e brainPin, OutputPin *output,
|
||||
float frequency, float dutyCycle);
|
||||
float frequency, float dutyCycle, pwm_gen_callback *callback = applyPinState);
|
||||
|
||||
void startSimplePwmHard(SimplePwm *state, const char *msg,
|
||||
ExecutorInterface *executor,
|
||||
|
|
Loading…
Reference in New Issue