Skip to content

Commit

Permalink
generator/C: still set checksum for forwarding
Browse files Browse the repository at this point in the history
In case a message is forwarded (even with unknown/bad CRC) we need to
copy the first CRC byte.
  • Loading branch information
julianoes committed Nov 12, 2024
1 parent 47aae56 commit 9ab6354
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions generator/C/include_v2.0/mavlink_helpers.h
Original file line number Diff line number Diff line change
Expand Up @@ -745,6 +745,7 @@ MAVLINK_HELPER uint8_t mavlink_frame_char_buffer(mavlink_message_t* rxmsg,
if (e == NULL) {
// Message not found in CRC_EXTRA table.
status->parse_state = MAVLINK_PARSE_STATE_GOT_BAD_CRC1;
rxmsg->ck[0] = c;
} else {
uint8_t crc_extra = e->crc_extra;
mavlink_update_checksum(rxmsg, crc_extra);
Expand Down

0 comments on commit 9ab6354

Please sign in to comment.