From 64b57de5591236e02605bdd44f4085d41bf368f4 Mon Sep 17 00:00:00 2001 From: Iampete1 Date: Tue, 2 Apr 2024 03:12:45 +0100 Subject: [PATCH] AP_HAL_SITL: call `_sitl->set_stop_MAVLink_sim_state()` when alocating elrs --- libraries/AP_HAL_SITL/SITL_State_common.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/libraries/AP_HAL_SITL/SITL_State_common.cpp b/libraries/AP_HAL_SITL/SITL_State_common.cpp index e2927a4215..52f67237ac 100644 --- a/libraries/AP_HAL_SITL/SITL_State_common.cpp +++ b/libraries/AP_HAL_SITL/SITL_State_common.cpp @@ -319,6 +319,7 @@ SITL::SerialDevice *SITL_State_Common::create_serial_sim(const char *name, const // MAVLink serial ports have begin called several times if (elrs == nullptr) { elrs = new SITL::ELRS(portNumber, this); + _sitl->set_stop_MAVLink_sim_state(); } return elrs; }