Browse Source

Update board.py for nvidia Jetson boards

Recently, Model names are updated for Jetson Nvidia boards.
This change takes care of model name check of Jetson TX1 nano and Xavier. Change also adds support for
Quill derivatives like storm and lightning.
pull/36/head
bibekbasu 5 years ago
committed by GitHub
parent
commit
2051282bbd
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      adafruit_platformdetect/board.py

+ 4
- 4
adafruit_platformdetect/board.py View File

@ -403,13 +403,13 @@ class Board:
"""Try to detect the id of aarch64 board."""
board_value = self.detector.get_device_model()
board = None
if 'tx1' in board_value:
if 'tx1' in board_value.lower():
board = JETSON_TX1
elif 'quill' in board_value:
elif 'quill' in board_value or "storm" in board_value or "lightning" in board_value:
board = JETSON_TX2
elif 'xavier' in board_value:
elif 'xavier' in board_value.lower():
board = JETSON_XAVIER
elif 'nano' in board_value or "Nano" in board_value:
elif 'nano' in board_value.lower():
board = JETSON_NANO
return board


|||||||
x
 
000:0
Loading…
Cancel
Save