Skip to content

Commit b1af6b5

Browse files
authored
Use new argument in __init__()
1 parent f776a93 commit b1af6b5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

adafruit_pixelbuf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def __init__( # pylint: disable=too-many-locals,too-many-arguments
5858
self.auto_write = False
5959

6060
effective_bpp = 4 if dotstar_mode else bpp
61-
_bytes = effective_bpp * n
61+
_bytes = effective_bpp * size
6262
buf = bytearray(_bytes)
6363
offset = 0
6464

@@ -73,7 +73,7 @@ def __init__( # pylint: disable=too-many-locals,too-many-arguments
7373
raise TypeError("trailer must be a bytearray")
7474
buf += trailer
7575

76-
self._pixels = n
76+
self._pixels = size
7777
self._bytes = _bytes
7878
self._byteorder = byteorder_tuple
7979
self._byteorder_string = byteorder

0 commit comments

Comments
 (0)