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

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

@DfePeterWinkler

Description

@DfePeterWinkler

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"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions