Skip to content

Commit f52104c

Browse files
authored
Merge pull request #37 from boltar/master
Update rpi_ws281x.py
2 parents 4371a7a + f8533ca commit f52104c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/rpi_ws281x/rpi_ws281x.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ def __init__(self, num, pin, freq_hz=800000, dma=10, invert=False,
111111
def _cleanup(self):
112112
# Clean up memory used by the library when not needed anymore.
113113
if self._leds is not None:
114-
ws.ws2811_fini(self.leds)
114+
ws.ws2811_fini(self._leds)
115115
ws.delete_ws2811_t(self._leds)
116116
self._leds = None
117117
self._channel = None

0 commit comments

Comments
 (0)