diff --git a/python/i2cdriver.py b/python/i2cdriver.py index 9306fb7..fec3ebf 100644 --- a/python/i2cdriver.py +++ b/python/i2cdriver.py @@ -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)