mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-22 07:44:03 -04:00
GCS_MAVLink: split AP_HAL_SITL and HAL_SIM_ENABLED
This commit is contained in:
parent
7ad9609fb7
commit
e0561b0ca1
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user