Skip to content

Commit 84f0f98

Browse files
authored
Merge pull request #182 from makermelissa/main
Fixed BeagleBoard Star V detection on latest build
2 parents 553b3cd + 4d5157d commit 84f0f98

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

adafruit_platformdetect/board.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def __init__(self, detector):
5252
self.detector = detector
5353
self._board_id = None
5454

55-
# pylint: disable=invalid-name, protected-access
55+
# pylint: disable=invalid-name, protected-access, too-many-return-statements
5656
@property
5757
def id(self):
5858
"""Return a unique id for the detected board, if any."""
@@ -227,9 +227,14 @@ def _beaglebone_id(self):
227227
"""Try to detect id of a Beaglebone."""
228228

229229
board_value = self.detector.get_device_compatible()
230+
# Older Builds
230231
if "freedom-u74-arty" in board_value:
231232
return boards.BEAGLEV_STARLIGHT
232233

234+
# Newer Builds
235+
if "beaglev-starlight" in board_value:
236+
return boards.BEAGLEV_STARLIGHT
237+
233238
try:
234239
with open("/sys/bus/nvmem/devices/0-00500/nvmem", "rb") as eeprom:
235240
eeprom_bytes = eeprom.read(16)

adafruit_platformdetect/chip.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,9 +184,14 @@ def _linux_id(self):
184184
if self.detector.check_dt_compatible_value("sun20iw1p1"):
185185
return chips.C906
186186

187+
# Older Builds
187188
if self.detector.check_dt_compatible_value("sifive"):
188189
return chips.JH71x0
189190

191+
# Newer Builds
192+
if self.detector.check_dt_compatible_value("jh7100"):
193+
return chips.JH71x0
194+
190195
if self.detector.check_dt_compatible_value("sun8i-a33"):
191196
return chips.A33
192197

0 commit comments

Comments
 (0)