mirror of https://github.com/FOME-Tech/fome-fw.git
What is "Aux PID"? fix #4807
This commit is contained in:
parent
84d4533f42
commit
6ce90db155
|
@ -19,6 +19,13 @@ static gppwm_Map3D_t* tables[] = {
|
|||
&table4,
|
||||
};
|
||||
|
||||
static char channelNames[GPPWM_CHANNELS][8] = { "GPPWM#1",
|
||||
"GPPWM#2",
|
||||
"GPPWM#3",
|
||||
"GPPWM#4",
|
||||
};
|
||||
|
||||
|
||||
void initGpPwm() {
|
||||
for (size_t i = 0; i < efi::size(channels); i++) {
|
||||
auto& cfg = engineConfiguration->gppwm[i];
|
||||
|
@ -35,7 +42,7 @@ void initGpPwm() {
|
|||
// Setup pin & pwm
|
||||
pins[i].initPin("gp pwm", cfg.pin);
|
||||
if (usePwm) {
|
||||
startSimplePwm(&outputs[i], "gp pwm", &engine->executor, &pins[i], freq, 0);
|
||||
startSimplePwm(&outputs[i], channelNames[i], &engine->executor, &pins[i], freq, 0);
|
||||
}
|
||||
|
||||
// Set up this channel's lookup table
|
||||
|
|
Loading…
Reference in New Issue