summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephan Thiele <stephan.thiele@mailbox.org>2019-11-13 23:14:16 +0100
committerUwe Hermann <uwe@hermann-uwe.de>2019-11-29 20:33:48 +0100
commit9a76aa18ecd429adda8a45258f43a2a93cc6def3 (patch)
tree0354ce41fe8f0db63fd5a90548f33375a5576ac4
parentd871cc2d11dba2a57b747a940beace0d9456c166 (diff)
downloadlibsigrokdecode-9a76aa18ecd429adda8a45258f43a2a93cc6def3.tar.gz
libsigrokdecode-9a76aa18ecd429adda8a45258f43a2a93cc6def3.zip
can: annotate classic CAN CRC as CRC-15
-rw-r--r--decoders/can/pd.py2
1 files changed, 1 insertions, 1 deletions
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]