diff --git a/adafruit_platformdetect/board.py b/adafruit_platformdetect/board.py index b06e95a..65fed1e 100644 --- a/adafruit_platformdetect/board.py +++ b/adafruit_platformdetect/board.py @@ -1022,9 +1022,9 @@ class Board: 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 @@ class Board: 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 b60de08..db91b10 100644 --- a/adafruit_platformdetect/constants/boards.py +++ b/adafruit_platformdetect/constants/boards.py @@ -455,6 +455,8 @@ _LINARO_96BOARDS_IDS = (DRAGONBOARD_410C,) _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.