Skip to content
This repository has been archived by the owner on May 7, 2021. It is now read-only.

log_frame() only can handle frames with 8 data bytes #40

Open
DfePeterWinkler opened this issue Mar 26, 2019 · 0 comments
Open

log_frame() only can handle frames with 8 data bytes #40

DfePeterWinkler opened this issue Mar 26, 2019 · 0 comments

Comments

@DfePeterWinkler
Copy link

in log.py::log_frame()[l.35] is assumed that the frame contains 8 data bytes. IMHO CAN messages might be lower than 8 data bytes esp. 0 data bytes. So I would expect lines something like:
line = ("(%f) %s %03X#" % (ts, self.if_name, frame.arb_id))
line += "".join(["%02X" % x for x in frame.data])
line += "\n"

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant