Skip to content

Commit 848b770

Browse files
Oops, change when speaker is disabled
1 parent e07f4cb commit 848b770

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Macropad_Dragon_Drop/code.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -275,11 +275,11 @@ def __init__(self, col, start_time):
275275
time.sleep(1.5) # Pause display for a moment
276276
MACROPAD.pixels.fill(0)
277277
MACROPAD.pixels.show()
278+
# pylint: disable=protected-access
279+
MACROPAD._speaker_enable.value = False
278280
# Pop any sprites from PLAY_GROUP (other elements remain, and SPRITES[]
279281
# list is cleared at start of next game).
280282
for _ in SPRITES:
281283
PLAY_GROUP.pop(1)
282284
END_GROUP[-1].text = str(SCORE)
283285
show_screen(END_GROUP)
284-
# pylint: disable=protected-access
285-
MACROPAD._speaker_enable.value = False

0 commit comments

Comments
 (0)