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 authored and tridge committed Jul 8, 2024
1 parent d496685 commit d251f7a
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 d251f7a

Please sign in to comment.