From f28b9453ae7cf61ecf9bd904b436269eb7e73ead Mon Sep 17 00:00:00 2001 From: Peter van der Perk Date: Mon, 13 Apr 2026 14:48:17 +0200 Subject: [PATCH] fix(io_bypass_control): pass a channel mask to up_pwm_update up_pwm_update() takes a channel mask, but the loop passed the channel index: channel 0 never latched and every other channel latched the wrong output. Latch all channels once after the setpoints are written. Co-authored-by: Andre Heinemans --- src/systemcmds/io_bypass_control/io_controller.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/systemcmds/io_bypass_control/io_controller.cpp b/src/systemcmds/io_bypass_control/io_controller.cpp index cc02df5dbd3..5803fd5335c 100644 --- a/src/systemcmds/io_bypass_control/io_controller.cpp +++ b/src/systemcmds/io_bypass_control/io_controller.cpp @@ -114,8 +114,9 @@ void IOController::Run() (1.0f / (float)(_rate * 2)) * 1000000); up_pwm_servo_set(i, setpoint); - up_pwm_update(i); } + + up_pwm_update(_pwm_mask); } } }