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

View File

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