From ab29da09d47cbb2b3e69888680ea53a02203d0aa Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Wed, 14 Jul 2021 10:40:58 +1000 Subject: [PATCH] generator: remove written-only bufferIndex state from C bindings --- generator/C/include_v0.9/mavlink_helpers.h | 2 -- 1 file changed, 2 deletions(-) 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) {