Skip to content

Error when decoding _status_last when the reset() function fails #25

@chrisbailey4

Description

@chrisbailey4

I ran into a particularly weird case where my chip was in a bad state. In my attempt to debug, I noticed that the status being set by the line:

self._status_last = self._transceive(bytes([_CMD_RT]))

aka self._status_last = self._transceive(bytes([_CMD_RT])). was slightly wrong and if I attempted to call the display_status I would get a type error.

I made a local change to address this:

data = self._transceive(bytes([_CMD_RT]))
self._status_last = data[0]

I am happy to make a PR to address this minor corner case and support the library if you would like.

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