From: Stephan Thiele Date: Wed, 13 Nov 2019 22:14:16 +0000 (+0100) Subject: can: annotate classic CAN CRC as CRC-15 X-Git-Url: https://sigrok.org/gitweb/?p=libsigrokdecode.git;a=commitdiff_plain;h=9a76aa18ecd429adda8a45258f43a2a93cc6def3 can: annotate classic CAN CRC as CRC-15 --- diff --git a/decoders/can/pd.py b/decoders/can/pd.py index 0b00127..faed45e 100644 --- a/decoders/can/pd.py +++ b/decoders/can/pd.py @@ -188,7 +188,7 @@ class Decoder(srd.Decoder): else: crc_type = "CRC-21" else: - crc_type = "CRC" # TODO: CRC-15 (will break existing tests) + crc_type = "CRC-15" x = self.last_databit + 1 crc_bits = self.bits[x:x + self.crc_len + 1]