projects
/
libsigrokdecode.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
d871cc2
)
can: annotate classic CAN CRC as CRC-15
author
Stephan Thiele
<redacted>
Wed, 13 Nov 2019 22:14:16 +0000
(23:14 +0100)
committer
Uwe Hermann
<redacted>
Fri, 29 Nov 2019 19:33:48 +0000
(20:33 +0100)
decoders/can/pd.py
patch
|
blob
|
blame
|
history
diff --git
a/decoders/can/pd.py
b/decoders/can/pd.py
index 0b001278a1905e9f27042d168e9a43fc2026645a..faed45e0cc6057730ca7d1889a047df60751ef7d 100644
(file)
--- 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]