Skip to content

Commit ae239bd

Browse files
authored
Merge pull request #36 from bibekbasu/patch-1
Update board.py for nvidia Jetson boards
2 parents 32fcd6c + 2051282 commit ae239bd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

adafruit_platformdetect/board.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -403,13 +403,13 @@ def _tegra_id(self):
403403
"""Try to detect the id of aarch64 board."""
404404
board_value = self.detector.get_device_model()
405405
board = None
406-
if 'tx1' in board_value:
406+
if 'tx1' in board_value.lower():
407407
board = JETSON_TX1
408-
elif 'quill' in board_value:
408+
elif 'quill' in board_value or "storm" in board_value or "lightning" in board_value:
409409
board = JETSON_TX2
410-
elif 'xavier' in board_value:
410+
elif 'xavier' in board_value.lower():
411411
board = JETSON_XAVIER
412-
elif 'nano' in board_value or "Nano" in board_value:
412+
elif 'nano' in board_value.lower():
413413
board = JETSON_NANO
414414
return board
415415

0 commit comments

Comments
 (0)