Skip to content

Example: crc.py, AttributeError: 'list' object has no attribute 'channel' #823

Closed
@Sicksym

Description

@Sicksym

There is a problem with compiling crc.py.

  for counter in range(16):
        checksum = compute_xbr_checksum(msg, counter)
        msg.data[7] = counter + (checksum << 4)
        messages.append(
            can.Message(arbitration_id=msg.arbitration_id, data=msg.data[:])
        )

In this for loop the messages are appending itself -> Error.

Is there any chance by changing the message for each transmit in order to append the CRC correctly?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions