Skip to content

Commit 11dfd6a

Browse files
authored
Merge pull request #1666 from lesamouraipourpre/next-bus
MagTag Next Bus: Update for CP7
2 parents aacdfff + 75ba051 commit 11dfd6a

3 files changed

Lines changed: 2 additions & 3 deletions

File tree

MagTag_NextBus/code.py

100755100644
Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ def hh_mm(time_struct, twelve_hour=True):
152152
FONT_LARGE = bitmap_font.load_font('/fonts/Impact-30.pcf')
153153

154154
# displayio group holds all the labels for the stops and predictions...
155-
GROUP = displayio.Group(max_size=14)
155+
GROUP = displayio.Group()
156156
GROUP.append(fillrect(0, 0, DISPLAY.width, DISPLAY.height, 0xFFFFFF))
157157
# Clear the screen ASAP before populating rest of group (erase any old
158158
# prediction data)...
@@ -179,8 +179,7 @@ def hh_mm(time_struct, twelve_hour=True):
179179
TEXT.anchor_point = (0.0, 1.0) # Bottom-left align description
180180
GROUP.append(TEXT)
181181
INITIAL = 'No predictions'
182-
TEXT = Label(FONT_MEDIUM, text=INITIAL, color=0,
183-
max_glyphs=max(len(INITIAL), MAX_PREDICTIONS * 7))
182+
TEXT = Label(FONT_MEDIUM, text=INITIAL, color=0)
184183
TEXT.anchor_point = (1.0, 1.0) # Bottom-right align predictions
185184
GROUP.append(TEXT)
186185

MagTag_NextBus/nextbus.py

100755100644
File mode changed.

MagTag_NextBus/nextbus_routefinder.py

100755100644
File mode changed.

0 commit comments

Comments
 (0)