diff --git a/libraries/GCS_MAVLink/include/mavlink/v1.0/mavlink_helpers.h b/libraries/GCS_MAVLink/include/mavlink/v1.0/mavlink_helpers.h index c3d0c85b93..098bb72bda 100644 --- a/libraries/GCS_MAVLink/include/mavlink/v1.0/mavlink_helpers.h +++ b/libraries/GCS_MAVLink/include/mavlink/v1.0/mavlink_helpers.h @@ -9,15 +9,6 @@ #define MAVLINK_HELPER #endif -/** - * Reset the status of a channel - */ -MAVLINK_HELPER void mavlink_reset_channel_status(uint8_t chan); -{ - mavlink_status_t *status = mavlink_get_channel_status(chan); - status->parse_state = MAVLINK_PARSE_STATE_IDLE; -} - /* * Internal function to give access to the channel status for each channel */ @@ -27,6 +18,15 @@ MAVLINK_HELPER mavlink_status_t* mavlink_get_channel_status(uint8_t chan) return &m_mavlink_status[chan]; } +/** + * Reset the status of a channel + */ +MAVLINK_HELPER void mavlink_reset_channel_status(uint8_t chan) +{ + mavlink_status_t *status = mavlink_get_channel_status(chan); + status->parse_state = MAVLINK_PARSE_STATE_IDLE; +} + /* * Internal function to give access to the channel buffer for each channel */