Skip to content

Commit ccca2b3

Browse files
authored
Update board.py
1 parent 16bf0c4 commit ccca2b3

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

adafruit_platformdetect/board.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -187,8 +187,6 @@ def id(self) -> Optional[str]:
187187
or self._armbian_id()
188188
or self._rk3588_id()
189189
)
190-
elif chip_id == chips.RV1106:
191-
board_id = self._rv1106_id()
192190
elif chip_id == chips.RYZEN_V1605B:
193191
board_id = self._udoo_id()
194192
elif chip_id == chips.PENTIUM_N3710:
@@ -215,6 +213,8 @@ def id(self) -> Optional[str]:
215213
board_id = boards.MILKV_DUO
216214
elif chip_id == chips.TH1520:
217215
board_id = boards.LICHEEPI_4A
216+
elif chip_id == chips.RV1106:
217+
board_id = self._rv1106_id()
218218
self._board_id = board_id
219219
return board_id
220220

@@ -607,14 +607,6 @@ def _rk3588_id(self) -> Optional[str]:
607607
board = boards.LUBANCAT4
608608
return board
609609

610-
def _rv1106_id(self) -> Optional[str]:
611-
"""Check what type of rv1106 board."""
612-
board_value = self.detector.get_device_model()
613-
board = None
614-
if board_value and "Luckfox Pico Max" in board_value:
615-
board = boards.LUCKFOX_PICO_MAX
616-
return board
617-
618610
def _rock_pi_id(self) -> Optional[str]:
619611
"""Check what type of Rock Pi board."""
620612
board_value = self.detector.get_device_model()
@@ -810,6 +802,14 @@ def _siemens_simatic_iot2000_id(self) -> Optional[str]:
810802
board = boards.SIEMENS_SIMATIC_IOT2050_BASIC
811803
return board
812804

805+
def _rv1106_id(self) -> Optional[str]:
806+
"""Check what type of rv1106 board."""
807+
board_value = self.detector.get_device_model()
808+
board = None
809+
if board_value and "Luckfox Pico Max" in board_value:
810+
board = boards.LUCKFOX_PICO_MAX
811+
return board
812+
813813
@property
814814
def any_siemens_simatic_iot2000(self) -> bool:
815815
"""Check whether the current board is a SIEMENS SIMATIC IOT2000 Gateway."""
@@ -994,7 +994,7 @@ def any_olimex_lime2_board(self):
994994
def any_repka_board(self):
995995
"""Check whether the current board is any Repka device."""
996996
return self.id in boards._REPKA_PI_IDS
997-
997+
998998
@property
999999
def any_luckfox_pico_board(self):
10001000
"""Check whether the current board is any Luckfox Pico device."""

0 commit comments

Comments
 (0)