From 257520cd9067ecab9c47098862ceebdb5570a900 Mon Sep 17 00:00:00 2001 From: Flavio Fernandes Date: Mon, 10 May 2021 05:42:55 -0400 Subject: [PATCH] Fix use of status_neopixel in network init Fixes adafruit/Adafruit_CircuitPython_MatrixPortal#77 --- adafruit_matrixportal/network.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/adafruit_matrixportal/network.py b/adafruit_matrixportal/network.py index 90aee94..88fd367 100755 --- a/adafruit_matrixportal/network.py +++ b/adafruit_matrixportal/network.py @@ -57,8 +57,8 @@ def __init__(self, **kwargs): if "debug" in kwargs: debug = kwargs.pop("debug") - if "status_neopixel" in kwargs: - status_neopixel = kwargs.pop("status_neopixel") + status_neopixel = kwargs.pop("status_neopixel", None) + if status_neopixel: status_led = neopixel.NeoPixel(status_neopixel, 1, brightness=0.2) else: status_led = None