Skip to content

Commit 7e367e7

Browse files
authored
Merge pull request #104 from FoamyGuy/update_samd51_check
fix samd51 check for 10.x
2 parents f6678a7 + baf3a77 commit 7e367e7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

adafruit_matrixportal/network.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
import neopixel
3333
from adafruit_portalbase.network import NetworkBase
3434

35-
if os.uname().sysname == "samd51":
35+
if "samd51" in os.uname().sysname:
3636
from adafruit_portalbase.wifi_coprocessor import WiFi
3737
else:
3838
from adafruit_portalbase.wifi_esp32s2 import WiFi
@@ -63,7 +63,7 @@ def __init__(self, **kwargs):
6363
if "debug" in kwargs:
6464
debug = kwargs.pop("debug")
6565

66-
if os.uname().sysname != "samd51":
66+
if "samd51" not in os.uname().sysname:
6767
if "external_spi" in kwargs:
6868
kwargs.pop("external_spi")
6969
if "esp" in kwargs:

0 commit comments

Comments
 (0)