GCS_MAVLink: wibble to mavlink_helpers.h to fix build.

This commit is contained in:
Pat Hickey 2012-09-18 11:47:52 -07:00 committed by Andrew Tridgell
parent 2a72c7e730
commit fd89bacbc8
1 changed files with 9 additions and 9 deletions

View File

@ -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
*/