From ac44c6bbefdbfc38af965182cfcb40f05b3f3937 Mon Sep 17 00:00:00 2001 From: rusefillc <48498823+rusefillc@users.noreply.github.com> Date: Thu, 2 Feb 2023 20:00:49 -0500 Subject: [PATCH] pump_dac: GetPumpOutputDuty() translate logocal to physical pwm channel (#188) Co-authored-by: Andrey Gusakov --- firmware/pump_dac.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/firmware/pump_dac.cpp b/firmware/pump_dac.cpp index 10262c0..7d3cb87 100644 --- a/firmware/pump_dac.cpp +++ b/firmware/pump_dac.cpp @@ -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)