File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -150,7 +150,7 @@ def id(self) -> Optional[str]:
150
150
elif chip_id == chips .RK3308 :
151
151
board_id = self ._rock_pi_id ()
152
152
elif chip_id == chips .RK3399 :
153
- board_id = self ._rock_pi_id () or self ._armbian_id ()
153
+ board_id = self ._rock_pi_id () or self ._armbian_id () or self . _diet_pi_id ()
154
154
elif chip_id == chips .RK3399_T :
155
155
board_id = self ._rock_pi_id () or self ._armbian_id ()
156
156
elif chip_id == chips .ATOM_X5_Z8350 :
@@ -374,7 +374,11 @@ def _armbian_id(self) -> Optional[str]:
374
374
375
375
# pylint: enable=too-many-return-statements
376
376
377
- # pylint: enable=too-many-return-statements
377
+ def _diet_pi_id (self ) -> Optional [str ]:
378
+ board_value = self .detector .get_device_model ()
379
+ if "OrangePi 4" in board_value :
380
+ return boards .ORANGE_PI_4
381
+ return None
378
382
379
383
def _sama5_id (self ) -> Optional [str ]:
380
384
"""Check what type sama5 board."""
You can’t perform that action at this time.
0 commit comments