drivers icon indicating copy to clipboard operation
drivers copied to clipboard

Change signature of Connected() methods to return error

Open ysoldak opened this issue 3 years ago • 0 comments

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

ysoldak avatar Feb 10 '22 22:02 ysoldak