Skip to content

Commit

Permalink
codespell says you're gonna have to Google it
Browse files Browse the repository at this point in the history
  • Loading branch information
jyoung8607 committed Sep 12, 2024
1 parent 561bbd7 commit 00e8552
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions opendbc/can/common.cc
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,7 @@ static const std::unordered_map<uint32_t, std::array<uint8_t, 16>> crc_mqb_const
};

unsigned int volkswagen_mqb_checksum(uint32_t address, const Signal &sig, const std::vector<uint8_t> &d) {
// AUTOSAR E2E Profile 2, CRC-8H2F with a "data ID" appended to the payload, which varies by message and by counter
// https://www.autosar.org/fileadmin/standards/R20-11/FO/AUTOSAR_PRS_E2EProtocol.pdf
// https://www.autosar.org/fileadmin/user_upload/standards/classic/4-3/AUTOSAR_SWS_CRCLibrary.pdf
// This is AUTOSAR E2E Profile 2, CRC-8H2F with a "data ID" (varying by message/counter) appended to the payload

uint8_t crc = 0xFF; // CRC-8H2F initial value

Expand Down

0 comments on commit 00e8552

Please sign in to comment.