mirror of https://github.com/rusefi/wideband.git
pump_dac: GetPumpOutputDuty() translate logocal to physical pwm channel (#188)
Co-authored-by: Andrey Gusakov <dron0gus@gmail.com>
This commit is contained in:
parent
f1448e5cf1
commit
ac44c6bbef
|
@ -75,7 +75,7 @@ void SetPumpCurrentTarget(int ch, int32_t microampere)
|
|||
|
||||
float GetPumpOutputDuty(int ch)
|
||||
{
|
||||
return pumpDac.GetLastDuty(ch);
|
||||
return pumpDac.GetLastDuty(pumpDacPwmCh[ch]);
|
||||
}
|
||||
|
||||
float GetPumpCurrent(int ch)
|
||||
|
|
Loading…
Reference in New Issue