pump_dac: GetPumpOutputDuty() translate logocal to physical pwm channel (#188)

Co-authored-by: Andrey Gusakov <dron0gus@gmail.com>
This commit is contained in:
rusefillc 2023-02-02 20:00:49 -05:00 committed by GitHub
parent f1448e5cf1
commit ac44c6bbef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -75,7 +75,7 @@ void SetPumpCurrentTarget(int ch, int32_t microampere)
float GetPumpOutputDuty(int ch) float GetPumpOutputDuty(int ch)
{ {
return pumpDac.GetLastDuty(ch); return pumpDac.GetLastDuty(pumpDacPwmCh[ch]);
} }
float GetPumpCurrent(int ch) float GetPumpCurrent(int ch)