Skip to content

Commit a35117b

Browse files
committed
Change detection of Onion Omega boards based on its 'cpu model'
1 parent 7001c3b commit a35117b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

adafruit_platformdetect/chip.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,9 @@ def _linux_id(self): # pylint: disable=too-many-branches
104104
if compatible and 'amlogic, g12b' in compatible:
105105
linux_id = S922X
106106

107-
machine = self.detector.get_cpuinfo_field("machine")
107+
cpu_model = self.detector.get_cpuinfo_field("cpu model")
108108

109-
if machine in ("Onion Omega", "Onion Omega2"):
109+
if ("MIPS 24Kc") in cpu_model:
110110
linux_id = ONION
111111

112112
elif hardware in ("BCM2708", "BCM2709", "BCM2835"):

0 commit comments

Comments
 (0)