From f122397241a6b810c50ae6afccf40df05f1bd359 Mon Sep 17 00:00:00 2001 From: Melissa LeBlanc-Williams Date: Mon, 17 Jun 2024 12:06:31 -0700 Subject: [PATCH] Fix olimex property --- adafruit_platformdetect/board.py | 6 +++--- adafruit_platformdetect/constants/boards.py | 2 ++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/adafruit_platformdetect/board.py b/adafruit_platformdetect/board.py index 3057ca8d..53411ac7 100644 --- a/adafruit_platformdetect/board.py +++ b/adafruit_platformdetect/board.py @@ -1022,9 +1022,9 @@ def any_nxp_navq_board(self) -> bool: return self.id in boards._NXP_SOM_IDS @property - def any_olimex_lime2_board(self): + def any_olimex_board(self): """Check whether the current board is any Pine64 device.""" - return self.id in boards.OLIMEX_LIME2 + return self.id in boards._OLIMEX_IDS @property def any_repka_board(self): @@ -1099,7 +1099,7 @@ def lazily_generate_conditions(): yield self.generic_linux yield self.any_nxp_navq_board yield self.any_walnutpi - yield self.any_olimex_lime2_board + yield self.any_olimex_board yield self.any_repka_board yield self.any_milkv_board yield self.any_luckfox_pico_board diff --git a/adafruit_platformdetect/constants/boards.py b/adafruit_platformdetect/constants/boards.py index b60de084..db91b103 100644 --- a/adafruit_platformdetect/constants/boards.py +++ b/adafruit_platformdetect/constants/boards.py @@ -455,6 +455,8 @@ _SIFIVE_IDS = (SIFIVE_UNLEASHED,) +_OLIMEX_IDS = (OLIMEX_LIME2,) + # BeagleBone eeprom board ids from: # https://github.com/beagleboard/image-builder # Thanks to zmatt on freenode #beagle for pointers.