Skip to content

Commit

Permalink
Merge pull request #270 from ecarozzo/main
Browse files Browse the repository at this point in the history
Fix board name after update to latest bios firmware
  • Loading branch information
makermelissa authored Dec 15, 2022
2 parents 86a57dc + 7de7158 commit 491d46a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions adafruit_platformdetect/board.py
Original file line number Diff line number Diff line change
Expand Up @@ -544,8 +544,8 @@ def _j4105_id(self) -> Optional[str]:
"/sys/devices/virtual/dmi/id/board_name", "r", encoding="utf-8"
) as board_name:
board_value = board_name.read().rstrip()
if board_value == "ODYSSEY-X86J4105":
return boards.ODYSSEY_X86J4105
if board_value in ("ODYSSEY-X86J41X5", "ODYSSEY-X86J41O5"):
return boards.ODYSSEY_X86J41X5
return None
except FileNotFoundError:
return None
Expand Down
4 changes: 2 additions & 2 deletions adafruit_platformdetect/constants/boards.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@
GREATFET_ONE = "GREATFET_ONE"

# SeeedStudio boards
ODYSSEY_X86J4105 = "ODYSSEY_X86J4105"
ODYSSEY_X86J41X5 = "ODYSSEY_X86J41X5"

# Udoo boards
UDOO_BOLT_V3 = "UDOO_BOLT_V3"
Expand Down Expand Up @@ -554,7 +554,7 @@
_UDOO_BOARD_IDS = {UDOO_BOLT_V8: ("SC40-2000-0000-C0|C",), UDOO_X86: ("dummy",)}

# SeeedStudio boards
_SEEED_BOARD_IDS = ODYSSEY_X86J4105
_SEEED_BOARD_IDS = ODYSSEY_X86J41X5

# MaaXBoard boards
_MAAXBOARD_IDS = ("MAAXBOARD", "MAAXBOARD_MINI")
Expand Down

0 comments on commit 491d46a

Please sign in to comment.