Skip to content

Matrix Portal M4 Dection Broken on 10.x #103

@FoamyGuy

Description

@FoamyGuy

Under 10.x the Matrix Portal M4 device raises this error:

Traceback (most recent call last):
  File "code.py", line 1, in <module>
  File "adafruit_matrixportal/matrixportal.py", line 36, in <module>
  File "adafruit_matrixportal/network.py", line 38, in <module>
  File "adafruit_portalbase/wifi_esp32s2.py", line 25, in <module>
ImportError: no module named 'ssl'

because it gets misidentified as not a samd51. The value of os.uname().sysname appears to have changed leading to the logic here

if os.uname().sysname == "samd51":
from adafruit_portalbase.wifi_coprocessor import WiFi
else:
from adafruit_portalbase.wifi_esp32s2 import WiFi
being broken for that case.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions