Skip to content

Status bitmask error #9

Description

@jku

As I mentioned in #8 I haven't actually executed this code... but there seems to be a bug in the protocol header parsing in parse_header():

    frame_id = (header >> 5) & 3
    endpoint = (header >> 3) & 3
    status = (header >> 2) & 3
    length = header & 3

status uses two bits here, it looks like it should use only one based on https://dev.tillitis.se/protocol/#response-frame-format:

    status = (header >> 2) & 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions