thank you Nik - dealing with false positive CUSTOM_OBD_LOW_FREQUENCY

This commit is contained in:
rusefillc 2021-09-06 08:09:14 -04:00
parent 0bdf334a8a
commit 8c9ff949fe
1 changed files with 3 additions and 1 deletions

View File

@ -34,7 +34,9 @@ void initGpPwm(DECLARE_ENGINE_PARAMETER_SIGNATURE) {
// Setup pin & pwm // Setup pin & pwm
pins[i].initPin("gp pwm", cfg.pin); pins[i].initPin("gp pwm", cfg.pin);
if (usePwm) {
startSimplePwm(&outputs[i], "gp pwm", &engine->executor, &pins[i], freq, 0); startSimplePwm(&outputs[i], "gp pwm", &engine->executor, &pins[i], freq, 0);
}
// Set up this channel's lookup table // Set up this channel's lookup table
tables[i]->init(cfg.table, cfg.loadBins, cfg.rpmBins); tables[i]->init(cfg.table, cfg.loadBins, cfg.rpmBins);