From 894ecac8dabce7ef4abf3e133c5d7cfab410bb06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beat=20K=C3=BCng?= Date: Fri, 25 Jun 2021 14:21:22 +0200 Subject: [PATCH] px4io: ensure pwm params are loaded before any other module starts The vtol module will read them later on. --- src/drivers/px4io/px4io.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/drivers/px4io/px4io.cpp b/src/drivers/px4io/px4io.cpp index 87f9fff4c3..a52bc3d51a 100644 --- a/src/drivers/px4io/px4io.cpp +++ b/src/drivers/px4io/px4io.cpp @@ -853,6 +853,9 @@ PX4IO::init() _primary_pwm_device = true; } + /* ensure PWM limits are applied before any other module starts */ + update_params(); + /* start the IO interface task */ _task = px4_task_spawn_cmd("px4io", SCHED_DEFAULT,