Skip to content

Commit

Permalink
remove checksum and counter alignment checks
Browse files Browse the repository at this point in the history
  • Loading branch information
jyoung8607 committed Jun 9, 2022
1 parent cb6d980 commit 0d30ee9
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions can/dbc.cc
Original file line number Diff line number Diff line change
Expand Up @@ -82,12 +82,10 @@ void set_signal_type(Signal& s, ChecksumState* chk, const std::string& dbc_name,
if (chk) {
if (s.name == "CHECKSUM") {
DBC_ASSERT(s.size == chk->checksum_size, "CHECKSUM is not " << chk->checksum_size << " bits long");
DBC_ASSERT((s.start_bit % 8) == chk->checksum_start_bit, " CHECKSUM starts at wrong bit");
DBC_ASSERT(s.is_little_endian == chk->little_endian, "CHECKSUM has wrong endianness");
s.type = chk->checksum_type;
} else if (s.name == "COUNTER") {
DBC_ASSERT(chk->counter_size == -1 || s.size == chk->counter_size, "COUNTER is not " << chk->counter_size << " bits long");
DBC_ASSERT(chk->counter_start_bit == -1 || (s.start_bit % 8) == chk->counter_start_bit, "COUNTER starts at wrong bit");
DBC_ASSERT(chk->little_endian == s.is_little_endian, "COUNTER has wrong endianness");
s.type = chk->counter_type;
}
Expand Down

0 comments on commit 0d30ee9

Please sign in to comment.