refactoring: VR magic constant, should be 3 anyway

This commit is contained in:
rusefi 2021-09-13 11:24:29 -04:00
parent 600371b2ee
commit eb13c54cd5
1 changed files with 2 additions and 2 deletions

View File

@ -2,8 +2,8 @@
#include "vr_pwm.h"
static OutputPin pins[2];
static SimplePwm pwms[2];
static OutputPin pins[VR_THRESHOLD_COUNT];
static SimplePwm pwms[VR_THRESHOLD_COUNT];
static void updateVrPwm(int rpm, size_t index DECLARE_ENGINE_PARAMETER_SUFFIX) {
auto& cfg = CONFIG(vrThreshold)[index];