From 8d477fac8b2fe59b061a36924ecb67ef9614281d Mon Sep 17 00:00:00 2001 From: Andy Piper Date: Sat, 18 May 2024 14:10:48 +0100 Subject: [PATCH] Plane: ensure the dshot type gets set --- ArduPlane/system.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/ArduPlane/system.cpp b/ArduPlane/system.cpp index 588fb13d15..3c118ec972 100644 --- a/ArduPlane/system.cpp +++ b/ArduPlane/system.cpp @@ -135,6 +135,7 @@ void Plane::init_ardupilot() if (g2.oneshot_mask != 0) { hal.rcout->set_output_mode(g2.oneshot_mask, AP_HAL::RCOutput::MODE_PWM_ONESHOT); } + hal.rcout->set_dshot_esc_type(SRV_Channels::get_dshot_esc_type()); set_mode_by_number((enum Mode::Number)g.initial_mode.get(), ModeReason::INITIALISED);