Skip to content

Could SPI issues be raised as IOErrors? #158

Closed
@dannystaple

Description

@dannystaple

When there are SPI failures (which I think are mostly down to underpowering the device or needing more ballast capacitors), the system raises a RuntimeError. Just so these can be handled differently (ie got wrong message back, or failed to get acknowledgment), could they be raised as an IOError?

Example:

raise RuntimeError("ESP32 timed out on SPI select")

This is so they are distinctly different from the socket type errors, like failed to connect to host (less hardware, more wrong hostname/ip):

raise RuntimeError("Failed to connect to host", host)

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