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.
1 parent f05c528 commit cab3578Copy full SHA for cab3578
adafruit_platformdetect/board.py
@@ -240,8 +240,11 @@ def _pi_id(self) -> Optional[str]:
240
241
if re_model:
242
pi_model = "".join(re_model.groups())
243
- available_models = boards._PI_REV_CODES.keys()
+ available_models = boards._PI_MODELS.values()
244
for model in available_models:
245
+ # Account for the PI_B_REV1/2 case
246
+ if isinstance(model, dict) and pi_model in model:
247
+ return model[pi_model]
248
if model == pi_model:
249
return model
250
0 commit comments