Update board.py
This commit is contained in:
parent
16bf0c47d7
commit
ccca2b3599
1 changed files with 11 additions and 11 deletions
|
|
@ -187,8 +187,6 @@ class Board:
|
||||||
or self._armbian_id()
|
or self._armbian_id()
|
||||||
or self._rk3588_id()
|
or self._rk3588_id()
|
||||||
)
|
)
|
||||||
elif chip_id == chips.RV1106:
|
|
||||||
board_id = self._rv1106_id()
|
|
||||||
elif chip_id == chips.RYZEN_V1605B:
|
elif chip_id == chips.RYZEN_V1605B:
|
||||||
board_id = self._udoo_id()
|
board_id = self._udoo_id()
|
||||||
elif chip_id == chips.PENTIUM_N3710:
|
elif chip_id == chips.PENTIUM_N3710:
|
||||||
|
|
@ -215,6 +213,8 @@ class Board:
|
||||||
board_id = boards.MILKV_DUO
|
board_id = boards.MILKV_DUO
|
||||||
elif chip_id == chips.TH1520:
|
elif chip_id == chips.TH1520:
|
||||||
board_id = boards.LICHEEPI_4A
|
board_id = boards.LICHEEPI_4A
|
||||||
|
elif chip_id == chips.RV1106:
|
||||||
|
board_id = self._rv1106_id()
|
||||||
self._board_id = board_id
|
self._board_id = board_id
|
||||||
return board_id
|
return board_id
|
||||||
|
|
||||||
|
|
@ -607,14 +607,6 @@ class Board:
|
||||||
board = boards.LUBANCAT4
|
board = boards.LUBANCAT4
|
||||||
return board
|
return board
|
||||||
|
|
||||||
def _rv1106_id(self) -> Optional[str]:
|
|
||||||
"""Check what type of rv1106 board."""
|
|
||||||
board_value = self.detector.get_device_model()
|
|
||||||
board = None
|
|
||||||
if board_value and "Luckfox Pico Max" in board_value:
|
|
||||||
board = boards.LUCKFOX_PICO_MAX
|
|
||||||
return board
|
|
||||||
|
|
||||||
def _rock_pi_id(self) -> Optional[str]:
|
def _rock_pi_id(self) -> Optional[str]:
|
||||||
"""Check what type of Rock Pi board."""
|
"""Check what type of Rock Pi board."""
|
||||||
board_value = self.detector.get_device_model()
|
board_value = self.detector.get_device_model()
|
||||||
|
|
@ -810,6 +802,14 @@ class Board:
|
||||||
board = boards.SIEMENS_SIMATIC_IOT2050_BASIC
|
board = boards.SIEMENS_SIMATIC_IOT2050_BASIC
|
||||||
return board
|
return board
|
||||||
|
|
||||||
|
def _rv1106_id(self) -> Optional[str]:
|
||||||
|
"""Check what type of rv1106 board."""
|
||||||
|
board_value = self.detector.get_device_model()
|
||||||
|
board = None
|
||||||
|
if board_value and "Luckfox Pico Max" in board_value:
|
||||||
|
board = boards.LUCKFOX_PICO_MAX
|
||||||
|
return board
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def any_siemens_simatic_iot2000(self) -> bool:
|
def any_siemens_simatic_iot2000(self) -> bool:
|
||||||
"""Check whether the current board is a SIEMENS SIMATIC IOT2000 Gateway."""
|
"""Check whether the current board is a SIEMENS SIMATIC IOT2000 Gateway."""
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue