From 23763a1f293007cd052f14165cfb7fe3ea73a9c6 Mon Sep 17 00:00:00 2001 From: Michael Stoops <3201502+michaelstoops@users.noreply.github.com> Date: Mon, 29 Jan 2024 18:15:42 -0800 Subject: [PATCH 1/2] Added detection for LeMaker Banana Pro running Debian Bookworm (12.4) --- adafruit_platformdetect/board.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/adafruit_platformdetect/board.py b/adafruit_platformdetect/board.py index 7b663e0..19ccd96 100644 --- a/adafruit_platformdetect/board.py +++ b/adafruit_platformdetect/board.py @@ -703,6 +703,9 @@ def _allwinner_variants_id(self) -> Optional[str]: board_value = board_value.lower() chip_id = self.detector.chip.id + if "banana pro" in board_value: + board = boards.LEMAKER_BANANA_PRO + if "banana pi m2 berry" in board_value: board = boards.BANANA_PI_M2_BERRY From 0e18221a4d415dedc2fdaca4c84f399428d51d92 Mon Sep 17 00:00:00 2001 From: Michael Stoops <3201502+michaelstoops@users.noreply.github.com> Date: Thu, 1 Feb 2024 08:12:02 -0800 Subject: [PATCH 2/2] Removed Banana Pro detection from _armbian_id --- adafruit_platformdetect/board.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/adafruit_platformdetect/board.py b/adafruit_platformdetect/board.py index 19ccd96..d2a0f2a 100644 --- a/adafruit_platformdetect/board.py +++ b/adafruit_platformdetect/board.py @@ -404,8 +404,6 @@ def _armbian_id(self) -> Optional[str]: board = boards.BANANA_PI_M2_BERRY elif board_value == "bananapim5": board = boards.BANANA_PI_M5 - elif board_value == "bananapipro": - board = boards.LEMAKER_BANANA_PRO elif board_value == "orangepizeroplus2-h5": board = boards.ORANGE_PI_ZERO_PLUS_2H5 elif board_value == "orangepizeroplus":