diff --git a/src/adafruit_blinka/microcontroller/generic_linux/i2c.py b/src/adafruit_blinka/microcontroller/generic_linux/i2c.py index 36db23b9..fafed24f 100644 --- a/src/adafruit_blinka/microcontroller/generic_linux/i2c.py +++ b/src/adafruit_blinka/microcontroller/generic_linux/i2c.py @@ -48,7 +48,7 @@ def scan(self): # see https://www.i2c-bus.org/addressing for addr in range(0x08, 0x78): try: - if (addr >= 0x30 and addr <= 0x37) or (addr >= 0x50 and addr <= 0x5F): + if (0x30 <= addr <= 0x37) or (0x50 <= addr <= 0x5F): self._i2c_bus.read_byte(addr) else: self._i2c_bus.write_quick(addr)