GCS_MAVLink: split AP_HAL_SITL and HAL_SIM_ENABLED

This commit is contained in:
Peter Barker 2021-10-30 12:11:38 +11:00 committed by Peter Barker
parent 7ad9609fb7
commit e0561b0ca1

View File

@ -3852,7 +3852,7 @@ void GCS_MAVLINK::send_banner()
void GCS_MAVLINK::send_simstate() const
{
#if CONFIG_HAL_BOARD == HAL_BOARD_SITL
#if AP_SIM_ENABLED
SITL::SIM *sitl = AP::sitl();
if (sitl == nullptr) {
return;
@ -3863,7 +3863,7 @@ void GCS_MAVLINK::send_simstate() const
void GCS_MAVLINK::send_sim_state() const
{
#if CONFIG_HAL_BOARD == HAL_BOARD_SITL
#if AP_SIM_ENABLED
SITL::SIM *sitl = AP::sitl();
if (sitl == nullptr) {
return;