Skip to content

Commit

Permalink
generator: remove written-only bufferIndex state from C bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
peterbarker committed Jul 1, 2024
1 parent 27eefbe commit ab29da0
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions generator/C/include_v0.9/mavlink_helpers.h
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,6 @@ the headers.

mavlink_message_t* rxmsg = mavlink_get_channel_buffer(chan); ///< The currently decoded message
mavlink_status_t* status = mavlink_get_channel_status(chan); ///< The current decode status
int bufferIndex = 0;

status->msg_received = 0;

Expand Down Expand Up @@ -381,7 +380,6 @@ the headers.
break;
}

bufferIndex++;
// If a message has been successfully decoded, check index
if (status->msg_received == 1)
{
Expand Down

0 comments on commit ab29da0

Please sign in to comment.