-
Notifications
You must be signed in to change notification settings - Fork 251
Added board detection for UDOO Bolt using check_board_asset_value() #81
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 5 commits
710f368
d0d36d1
a5eb09d
0de104c
d3cc2a2
ab2bd7d
4c3b219
3fedb68
125f2ad
f418f0f
61c0859
e16fed5
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -50,6 +50,7 @@ class Board: | |
|
||
def __init__(self, detector): | ||
self.detector = detector | ||
self.board_asset_tag = self.detector.check_board_asset_tag_value().strip() | ||
|
||
# pylint: disable=invalid-name, protected-access | ||
@property | ||
|
@@ -117,7 +118,7 @@ def id(self): | |
board_id = self._clockwork_pi_id() | ||
elif chip_id == chips.RK3308: | ||
board_id = self._rock_pi_id() | ||
elif chip_id == chips.RYZEN_V1605B: | ||
elif self.board_asset_tag == "SC40-2000-0000-C0|C": | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can we move the actual tag into the constants/board.py file? You could make an IDs tuple like we did for other boards. That way if UDOO adds additional IDs, it's easy to add new ones in and it looks cleaner. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Like this?` _UDOO_IDS = ( There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not quite. More like:
|
||
board_id = boards.UDOO_BOLT | ||
|
||
return board_id | ||
|
Uh oh!
There was an error while loading. Please reload this page.