Skip to content

Commit

Permalink
BeagleBone: Fix logical error
Browse files Browse the repository at this point in the history
  • Loading branch information
bgigous committed Dec 12, 2024
1 parent 68fbb39 commit acaf6e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions adafruit_platformdetect/board.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit acaf6e6

Please sign in to comment.