drivers
drivers copied to clipboard
Change signature of Connected() methods to return error
While checking for device, a bus error can occur. We may want to distinguish case of no device found from case of bus error.
This means Connected() method must return not only bool but error too.
See thread for initial discussion: https://github.com/tinygo-org/drivers/pull/368#discussion_r795855784