Skip to content

Commit a09fde7

Browse files
committed
Cosmic Unicorn: Fix feature test for #661.
1 parent 6c0c45d commit a09fde7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

micropython/examples/cosmic_unicorn/feature_test_with_audio.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ def tick(timer):
252252
was_c_pressed = False
253253

254254
if gu.is_pressed(CosmicUnicorn.SWITCH_D):
255-
if not was_c_pressed:
255+
if not was_d_pressed:
256256
# Stop synth (if running) and play Tone B
257257
timer.deinit()
258258
tone_b = 600
@@ -291,7 +291,7 @@ def tick(timer):
291291
channels[0].frequency(tone_a)
292292

293293
if gu.is_pressed(CosmicUnicorn.SWITCH_SLEEP):
294-
if not was_d_pressed:
294+
if not was_z_pressed:
295295
# Stop synth and both tones
296296
tone_a = 0
297297
tone_b = 0

0 commit comments

Comments
 (0)