Skip to content

Commit

Permalink
Fix bitshifting issue on 8bit AVR boards when using msgid > 255
Browse files Browse the repository at this point in the history
Fix stray full stop
  • Loading branch information
WildWilly37 committed Aug 9, 2023
1 parent 1de471e commit 4c30922
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion generator/C/include_v2.0/mavlink_helpers.h
Original file line number Diff line number Diff line change
Expand Up @@ -707,7 +707,7 @@ MAVLINK_HELPER uint8_t mavlink_frame_char_buffer(mavlink_message_t* rxmsg,
break;

case MAVLINK_PARSE_STATE_GOT_MSGID1:
rxmsg->msgid |= c<<8;
rxmsg->msgid |= ((uint32_t)c)<<8;
mavlink_update_checksum(rxmsg, c);
status->parse_state = MAVLINK_PARSE_STATE_GOT_MSGID2;
break;
Expand Down

0 comments on commit 4c30922

Please sign in to comment.