default arguments are cool even while I might not even need it now

This commit is contained in:
Andrey 2023-09-05 16:17:13 -04:00
parent 70945665e9
commit 464ce6ae50
2 changed files with 3 additions and 3 deletions

View File

@ -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);
}
/**

View File

@ -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,