We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 68fbb39 commit acaf6e6Copy full SHA for acaf6e6
adafruit_platformdetect/board.py
@@ -324,8 +324,8 @@ def _beaglebone_id(self) -> Optional[str]:
324
325
# find device alias at i2c address 0x50 (0-00500, 0-00501, etc)
326
nvmem_devices = glob.glob('/sys/bus/nvmem/devices/0-0050*')
327
- # do not expect there to be more than one eeprom
328
- if len(nvmem_devices) > 1:
+ # do not expect there to be anything but one eeprom
+ if len(nvmem_devices) != 1:
329
return None
330
331
eeprom_dir = nvmem_devices[0]
0 commit comments