GCS_MAVLink: tidy sending of queued SIM messages

This commit is contained in:
Peter Barker 2023-10-27 18:16:40 +11:00 committed by Andrew Tridgell
parent 0fe9030b42
commit d894281f2b
1 changed files with 2 additions and 4 deletions

View File

@ -5940,19 +5940,17 @@ bool GCS_MAVLINK::try_send_message(const enum ap_message id)
send_servo_output_raw();
break;
case MSG_SIMSTATE:
#if AP_SIM_ENABLED
case MSG_SIMSTATE:
CHECK_PAYLOAD_SIZE(SIMSTATE);
send_simstate();
#endif
break;
case MSG_SIM_STATE:
#if AP_SIM_ENABLED
CHECK_PAYLOAD_SIZE(SIM_STATE);
send_sim_state();
#endif
break;
#endif
case MSG_SYS_STATUS:
CHECK_PAYLOAD_SIZE(SYS_STATUS);