Skip to content

mavlink_helpers delete the always false condition: 'status->msg_received' - #1147

Open
oneWayOut wants to merge 1 commit into
ArduPilot:masterfrom
oneWayOut:del_false_condition
Open

mavlink_helpers delete the always false condition: 'status->msg_received'#1147
oneWayOut wants to merge 1 commit into
ArduPilot:masterfrom
oneWayOut:del_false_condition

Conversation

@oneWayOut

Copy link
Copy Markdown
Contributor

The variable status->msg_received is set to zero at the beginning of function mavlink_frame_char_buffer() as below:

status->msg_received = MAVLINK_FRAMING_INCOMPLETE;

So the condition expression if (status->msg_received) in the following switch case statement is always false, which could be deleted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant