From 8da02e22338f593e8c3fdce642e2d12a31a9da72 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beat=20K=C3=BCng?= Date: Fri, 29 Apr 2022 08:02:04 +0200 Subject: [PATCH] dshot: avoid using pwm failsafe params when dynamic mixing is enabled --- src/drivers/dshot/DShot.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/drivers/dshot/DShot.cpp b/src/drivers/dshot/DShot.cpp index 148575b481..fec51e4afc 100644 --- a/src/drivers/dshot/DShot.cpp +++ b/src/drivers/dshot/DShot.cpp @@ -47,6 +47,11 @@ DShot::DShot() : _mixing_output.setAllDisarmedValues(DSHOT_DISARM_VALUE); _mixing_output.setAllMinValues(DSHOT_MIN_THROTTLE); _mixing_output.setAllMaxValues(DSHOT_MAX_THROTTLE); + + if (_mixing_output.useDynamicMixing()) { + // Avoid using the PWM failsafe params + _mixing_output.setAllFailsafeValues(UINT16_MAX); + } } DShot::~DShot()