Skip to content

Commit bf282f9

Browse files
committed
Fixed accidentally deleted line
1 parent be8f3b2 commit bf282f9

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

adafruit_matrixportal/matrixportal.py

+7-2
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
import gc
2929
from time import sleep
3030
import terminalio
31-
from displayio import Group
3231
from adafruit_bitmap_font import bitmap_font
3332
from adafruit_display_text.label import Label
3433
from adafruit_matrixportal.network import Network
@@ -267,8 +266,14 @@ def set_text(self, val, index=0):
267266
string = string[: self._text_maxlen[index]]
268267
print("text index", self._text[index])
269268
index_in_splash = None
269+
270270
if self._text[index] is not None:
271-
print("Replacing text area with :", string)
271+
if self._debug:
272+
print("Replacing text area with :", string)
273+
index_in_splash = self.splash.index(self._text[index])
274+
elif self._debug:
275+
print("Creating text area with :", string)
276+
272277
if len(string) > 0:
273278
self._text[index] = Label(
274279
self._text_font, text=string, scale=self._text_scale[index]

0 commit comments

Comments
 (0)