From 0d30ee9b854c933bf12ee9ca26ad0b0f29956cea Mon Sep 17 00:00:00 2001 From: Jason Young Date: Thu, 9 Jun 2022 13:14:50 -0400 Subject: [PATCH] remove checksum and counter alignment checks --- can/dbc.cc | 2 -- 1 file changed, 2 deletions(-) diff --git a/can/dbc.cc b/can/dbc.cc index 7a0effbdf5..9d83876cbc 100644 --- a/can/dbc.cc +++ b/can/dbc.cc @@ -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; }