Skip to content

Commit ee1ce0f

Browse files
committed
Hardware to upper
1 parent dd6d4f9 commit ee1ce0f

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

adafruit_platformdetect/chip.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,10 +122,10 @@ def _linux_id(self): # pylint: disable=too-many-branches,too-many-statements
122122
linux_id = chips.A64
123123
else:
124124
if isinstance(hardware, str):
125-
if hardware in chips.BCM_RANGE:
125+
if hardware.upper() in chips.BCM_RANGE:
126126
linux_id = chips.BCM2XXX
127127
elif isinstance(hardware, list):
128-
if set(hardware) & chips.BCM_RANGE:
128+
if set([model.upper() for model in hardware]) & chips.BCM_RANGE:
129129
linux_id = chips.BCM2XXX
130130

131131
return linux_id

adafruit_platformdetect/constants/chips.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,4 @@
2323
MIPS24KEC = "MIPS24KEC"
2424
A64 = "A64"
2525

26-
BCM_RANGE = {'BCM2708', 'BCM2709', 'BCM2711', 'BCM2835', 'BCM2837',
27-
'bcm2708', 'bcm2709', 'bcm2711', 'bcm2835', 'bcm2837'}
26+
BCM_RANGE = {'BCM2708', 'BCM2709', 'BCM2711', 'BCM2835', 'BCM2837'}

0 commit comments

Comments
 (0)