Skip to content

Checksum incorrectly calculated... sometimes. #25

@Zebble

Description

@Zebble

Changed in getChecksum in message.py:

checksum = (checksum ^ ord(byte)) % 0xFF

To:

checksum = (checksum ^ ord(byte))

Wasn't properly creating checksum on some streams. Here's an example. getChecksum would fail on the "A4" checksum in the Read response. This was on a Dynastream ANTUSB-m.

Write:

A4 02 4D 00 54 BF

Read:

A4 07 54 08 08 00 BA 36 00 DF A4

-wade

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions