We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents bf42d08 + 57e3c32 commit a2c9e3eCopy full SHA for a2c9e3e
adafruit_platformdetect/chip.py
@@ -106,11 +106,11 @@ def _linux_id(self): # pylint: disable=too-many-branches
106
linux_id = S922X
107
108
cpu_model = self.detector.get_cpuinfo_field("cpu model")
109
-
110
- if "MIPS 24Kc" in cpu_model:
111
- linux_id = MIPS24KC
112
- elif "MIPS 24KEc" in cpu_model:
113
- linux_id = MIPS24KEC
+ if cpu_model is not None:
+ if "MIPS 24Kc" in cpu_model:
+ linux_id = MIPS24KC
+ elif "MIPS 24KEc" in cpu_model:
+ linux_id = MIPS24KEC
114
115
elif hardware in ("BCM2708", "BCM2709", "BCM2835"):
116
linux_id = BCM2XXX
0 commit comments