Skip to content

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

Merged
merged 12 commits into from
May 23, 2020

Conversation

geekguy-wy
Copy link
Contributor

Added board detection for UDOO Bolt using check_board_asset_value() and added it to detect.py

Copy link
Collaborator

@makermelissa makermelissa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. I see just a couple items that I think will make this look even better.
Thanks.

@@ -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":
Copy link
Collaborator

Choose a reason for hiding this comment

The 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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Like this?`
'_UDOO_BOLT_ASSET = "SC40-2000-0000-C0|C"

_UDOO_IDS = (
UDOO_BOLT,
_UDOO_BOLT_ASSET,
)'

Copy link
Collaborator

@makermelissa makermelissa May 19, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not quite. More like:

_UDOO_BOARD_IDS = {
    UDOO_BOLT: (
        "SC40-2000-0000-C0|C",
    )
}

@makermelissa
Copy link
Collaborator

One more thing is adding an any_udoo_board() like we did with the others. It'll make adding Blinka support easier.

@makermelissa
Copy link
Collaborator

No, I mean just the hard-coded number

@makermelissa
Copy link
Collaborator

Hi, I submitted a PR to your repo at geekguy-wy#1 that should make it so that it doesn't break the code for other boards. Please give that a try and then we can get this merged in soon.

Updated Code for Udoo bolt ID - merging changes
@makermelissa makermelissa merged commit a1cbc7b into adafruit:master May 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants