Browse Source

Merge pull request #361 from makermelissa/main

Fix olimex property
pull/364/head 3.70.1
Melissa LeBlanc-Williams 9 months ago
committed by GitHub
parent
commit
35da22e815
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 3 deletions
  1. +3
    -3
      adafruit_platformdetect/board.py
  2. +2
    -0
      adafruit_platformdetect/constants/boards.py

+ 3
- 3
adafruit_platformdetect/board.py View File

@ -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


+ 2
- 0
adafruit_platformdetect/constants/boards.py View File

@ -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.


|||||||
x
 
000:0
Loading…
Cancel
Save