Skip to content

Commit 8286f11

Browse files
committed
Change chip id for onion omega on detection.
1 parent a35117b commit 8286f11

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

adafruit_platformdetect/chip.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
HFU540 = "HFU540"
2323
MCP2221 = "MCP2221"
2424
BINHO = "BINHO"
25-
ONION = "ONION_OMEGA"
25+
MIPS24KC = "MIPS24KC"
2626

2727
class Chip:
2828
"""Attempt detection of current chip / CPU."""
@@ -106,8 +106,8 @@ def _linux_id(self): # pylint: disable=too-many-branches
106106

107107
cpu_model = self.detector.get_cpuinfo_field("cpu model")
108108

109-
if ("MIPS 24Kc") in cpu_model:
110-
linux_id = ONION
109+
if "MIPS 24Kc" in cpu_model:
110+
linux_id = MIPS24KC
111111

112112
elif hardware in ("BCM2708", "BCM2709", "BCM2835"):
113113
linux_id = BCM2XXX

0 commit comments

Comments
 (0)