diff --git a/adafruit_platformdetect/board.py b/adafruit_platformdetect/board.py index e69f682..748a3cb 100644 --- a/adafruit_platformdetect/board.py +++ b/adafruit_platformdetect/board.py @@ -324,8 +324,8 @@ def _beaglebone_id(self) -> Optional[str]: # find device alias at i2c address 0x50 (0-00500, 0-00501, etc) nvmem_devices = glob.glob('/sys/bus/nvmem/devices/0-0050*') - # do not expect there to be more than one eeprom - if len(nvmem_devices) > 1: + # do not expect there to be anything but one eeprom + if len(nvmem_devices) != 1: return None eeprom_dir = nvmem_devices[0]