refactoring: VR magic constant, should be 3 anyway
This commit is contained in:
parent
600371b2ee
commit
eb13c54cd5
|
@ -2,8 +2,8 @@
|
||||||
|
|
||||||
#include "vr_pwm.h"
|
#include "vr_pwm.h"
|
||||||
|
|
||||||
static OutputPin pins[2];
|
static OutputPin pins[VR_THRESHOLD_COUNT];
|
||||||
static SimplePwm pwms[2];
|
static SimplePwm pwms[VR_THRESHOLD_COUNT];
|
||||||
|
|
||||||
static void updateVrPwm(int rpm, size_t index DECLARE_ENGINE_PARAMETER_SUFFIX) {
|
static void updateVrPwm(int rpm, size_t index DECLARE_ENGINE_PARAMETER_SUFFIX) {
|
||||||
auto& cfg = CONFIG(vrThreshold)[index];
|
auto& cfg = CONFIG(vrThreshold)[index];
|
||||||
|
|
Loading…
Reference in New Issue