Skip to content

Commit 449f8e4

Browse files
committed
Fix disconnect bug
1 parent 6496dcf commit 449f8e4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CPB_AMS_Gizmo_BLE/cpb_ams_gizmo_ble.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def set_status(label, action_text, player):
8484
print("Loading Font Glyphs...")
8585
title_label = make_label("None", 12, 30, TEXT_COLOR, font="/fonts/Arial-Bold-18.bdf")
8686
artist_label = make_label("None", 12, 70, TEXT_COLOR, font="/fonts/Arial-16.bdf")
87-
album_label = make_label("None", 12, 170, TEXT_COLOR, font="/fonts/Arial-16.bdf")
87+
album_label = make_label("None", 12, 184, TEXT_COLOR, font="/fonts/Arial-16.bdf")
8888
status_label = make_label("None", 80, 220, STATUS_COLOR, font="/fonts/Arial-16.bdf")
8989
group.append(make_background(240, 240, BACKGROUND_COLOR))
9090
border = Rect(4, 4, 232, 200, outline=BORDER_COLOR, stroke=2)
@@ -127,5 +127,5 @@ def set_status(label, action_text, player):
127127

128128
print("disconnected")
129129
# Remove all layers
130-
while group.len():
130+
while len(group):
131131
group.pop()

0 commit comments

Comments
 (0)