Skip to content

Commit

Permalink
AP_HAL_SITL: call _sitl->set_stop_MAVLink_sim_state() when alocatin…
Browse files Browse the repository at this point in the history
…g elrs
  • Loading branch information
IamPete1 committed Apr 10, 2024
1 parent b019d82 commit d099d83
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libraries/AP_HAL_SITL/SITL_State_common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit d099d83

Please sign in to comment.