Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update example scripts to support canfd #1059

Merged
merged 1 commit into from
Sep 2, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions examples/can_bit_transition.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ class Message():

def __init__(self, message_id):
self.message_id = message_id
self.ones = [0] * 8 # bit set if 1 is always seen
self.zeros = [0] * 8 # bit set if 0 is always seen
self.ones = [0] * 64 # bit set if 1 is always seen
self.zeros = [0] * 64 # bit set if 0 is always seen

def printBitDiff(self, other):
"""Prints bits that transition from always zero to always 1 and vice versa."""
Expand Down
4 changes: 2 additions & 2 deletions examples/can_unique.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ class Message():
def __init__(self, message_id):
self.message_id = message_id
self.data = {} # keyed by hex string encoded message data
self.ones = [0] * 8 # bit set if 1 is seen
self.zeros = [0] * 8 # bit set if 0 has been seen
self.ones = [0] * 64 # bit set if 1 is seen
self.zeros = [0] * 64 # bit set if 0 has been seen

def printBitDiff(self, other):
"""Prints bits that are set or cleared compared to other background."""
Expand Down