From fc834caf384f84662b356c95a34cb71722f8d512 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Sun, 19 Nov 2023 11:38:47 +1100 Subject: [PATCH] Rover: stop streaming trying SIM_STATE messages outside sim --- Rover/GCS_Mavlink.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Rover/GCS_Mavlink.cpp b/Rover/GCS_Mavlink.cpp index f47cecfb283a2..e13e35bebc255 100644 --- a/Rover/GCS_Mavlink.cpp +++ b/Rover/GCS_Mavlink.cpp @@ -556,7 +556,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, MSG_PID_TUNING, };