Skip to content

Commit

Permalink
thank you Nik - dealing with false positive CUSTOM_OBD_LOW_FREQUENCY
Browse files Browse the repository at this point in the history
  • Loading branch information
rusefillc committed Sep 6, 2021
1 parent 0bdf334 commit 8c9ff94
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion firmware/controllers/actuators/gppwm/gppwm.cpp
Expand Up @@ -34,7 +34,9 @@ void initGpPwm(DECLARE_ENGINE_PARAMETER_SIGNATURE) {

// Setup pin & pwm
pins[i].initPin("gp pwm", cfg.pin);
startSimplePwm(&outputs[i], "gp pwm", &engine->executor, &pins[i], freq, 0);
if (usePwm) {
startSimplePwm(&outputs[i], "gp pwm", &engine->executor, &pins[i], freq, 0);
}

// Set up this channel's lookup table
tables[i]->init(cfg.table, cfg.loadBins, cfg.rpmBins);
Expand Down

0 comments on commit 8c9ff94

Please sign in to comment.