From ba8e770a818b3dd42d5e55f9119e6ca70035fdfc Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Sun, 19 Nov 2023 11:38:46 +1100 Subject: [PATCH] ArduPlane: stop streaming trying SIM_STATE messages outside sim --- ArduPlane/GCS_Mavlink.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ArduPlane/GCS_Mavlink.cpp b/ArduPlane/GCS_Mavlink.cpp index 84c00518ce..9427b99e0c 100644 --- a/ArduPlane/GCS_Mavlink.cpp +++ b/ArduPlane/GCS_Mavlink.cpp @@ -649,7 +649,9 @@ static const ap_message STREAM_RC_CHANNELS_msgs[] = { }; static const ap_message STREAM_EXTRA1_msgs[] = { MSG_ATTITUDE, +#if AP_SIM_ENABLED MSG_SIMSTATE, +#endif MSG_AHRS2, #if AP_RPM_ENABLED MSG_RPM,