Skip to content

Commit 4e78995

Browse files
authored
Merge pull request #78 from flavio-fernandes/fix.issue.77
Fix use of status_neopixel in network init
2 parents 25bc43f + 257520c commit 4e78995

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
@@ -57,8 +57,8 @@ def __init__(self, **kwargs):
5757
if "debug" in kwargs:
5858
debug = kwargs.pop("debug")
5959

60-
if "status_neopixel" in kwargs:
61-
status_neopixel = kwargs.pop("status_neopixel")
60+
status_neopixel = kwargs.pop("status_neopixel", None)
61+
if status_neopixel:
6262
status_led = neopixel.NeoPixel(status_neopixel, 1, brightness=0.2)
6363
else:
6464
status_led = None

0 commit comments

Comments
 (0)