diff --git a/generator/C/include_v0.9/mavlink_helpers.h b/generator/C/include_v0.9/mavlink_helpers.h index d8f2c70e0..b7f9fd039 100644 --- a/generator/C/include_v0.9/mavlink_helpers.h +++ b/generator/C/include_v0.9/mavlink_helpers.h @@ -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; @@ -381,7 +380,6 @@ the headers. break; } - bufferIndex++; // If a message has been successfully decoded, check index if (status->msg_received == 1) {