Skip to content

Commit

Permalink
Update checklength
Browse files Browse the repository at this point in the history
  • Loading branch information
rlhartley authored and Andrew Tridgell committed Aug 17, 2012
1 parent 239443d commit cbf8748
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pymavlink/generator/C/include_v1.0/mavlink_helpers.h
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,12 @@ MAVLINK_HELPER uint8_t mavlink_parse_char(uint8_t chan, uint8_t c, mavlink_messa
#endif
#endif

/* Enable this option to check the length of each message.
This allows invalid messages to be caught much sooner. Use if the transmission
medium is prone to missing (or extra) characters (e.g. a radio that fades in
and out). Only use if the channel will only contain messages types listed in
the headers.
*/
#if MAVLINK_CHECK_MESSAGE_LENGTH
#ifndef MAVLINK_MESSAGE_LENGTH
static const uint8_t mavlink_message_lengths[256] = MAVLINK_MESSAGE_LENGTHS;
Expand Down

0 comments on commit cbf8748

Please sign in to comment.