adafruit / Adafruit_CircuitPython_BusDevice

Two helper classes that handle transaction related state for I2C and SPI including locks.
MIT License
105 stars 76 forks source link

Error message gives a hex address without the 0x prefix #62

Closed BiffoBear closed 3 years ago

BiffoBear commented 3 years ago

adafruit_bus_device/i2c_device.py line 180 raise ValueError("No I2C device at address: %x" % self.device_address)

would be better as; raise ValueError("No I2C device at address: 0x%x" % self.device_address)

as the hex address without a prefix is ambiguous.

ladyada commented 3 years ago

solved :)