X-Git-Url: https://git.ayoreis.com/Adafruit_Blinka-hackapet.git/blobdiff_plain/b91d3fc70bd1599ea50517a390d18a3fc455fc85..bec74d02e9ae2c6c93b82508a4febb5fa448182e:/src/board.py diff --git a/src/board.py b/src/board.py index c0d141e..0e561c0 100644 --- a/src/board.py +++ b/src/board.py @@ -41,13 +41,7 @@ elif board_id == ap_board.PYBOARD: elif board_id == ap_board.RASPBERRY_PI_PICO: from adafruit_blinka.board.raspberrypi.pico import * -elif ( - detector.board.RASPBERRY_PI_4B - or detector.board.RASPBERRY_PI_CM4 - or detector.board.RASPBERRY_PI_CM4S - or detector.board.RASPBERRY_PI_400 - or detector.board.RASPBERRY_PI_5 -): +elif detector.board.any_raspberry_pi_4_board or detector.board.any_raspberry_pi_5_board: from adafruit_blinka.board.raspberrypi.raspi_4b import * elif detector.board.any_raspberry_pi_40_pin: @@ -143,7 +137,7 @@ elif board_id == ap_board.ORANGE_PI_4: elif board_id == ap_board.ORANGE_PI_4_LTS: from adafruit_blinka.board.orangepi.orangepi4 import * -elif board_id == ap_board.ORANGE_PI_5: +elif board_id in (ap_board.ORANGE_PI_5, ap_board.ORANGE_PI_5_MAX): from adafruit_blinka.board.orangepi.orangepi5 import * elif board_id == ap_board.ORANGE_PI_5_PLUS: