]> sigrok.org Git - libsigrokdecode.git/commit
can: avoid assignment to .id field during frame inspection
authorGerhard Sittig <redacted>
Wed, 22 Jul 2020 20:05:54 +0000 (22:05 +0200)
committerGerhard Sittig <redacted>
Sun, 26 Jul 2020 12:38:18 +0000 (14:38 +0200)
commitbd7efe23c7a2e6c6698a3652fc0ce0a0d5dab156
tree8e8d135761c6d40239b06dd4b952e36ca242a950
parentb0edaeb30d16af16ddbe112fe12960697196b581
can: avoid assignment to .id field during frame inspection

The CAN frame's ID field gets stored in an .id member, which is
unfortunate. Use .ident instead. The 'id' identifier is a Python
language word, though it's used for PD boilerplate as well. Assume
that the boilerplate is worth keeping, and harder to adjust (more
dependencies), so adjust this PD's implementation to resolve the
ambiguity.
decoders/can/pd.py