Proper busy bus expection

This commit is contained in:
James Bowman 2020-01-25 18:51:29 -08:00
parent 8a4007b75c
commit b38d01148e
1 changed files with 1 additions and 1 deletions

View File

@ -110,7 +110,7 @@ class I2CDriver:
return
if reset or (self.scl, self.sda) != (1, 1):
if self.reset() != 3:
assert 0, "I2C bus is busy"
raise I2CTimeout("Bus failed to reset - check connected devices")
self.getstatus()
self.setspeed(100)