From c2b1eb47e58a3ba24f5b9fd35a7f1450d9ef5958 Mon Sep 17 00:00:00 2001 From: Hel Gibbons Date: Mon, 27 Feb 2023 13:17:57 +0000 Subject: [PATCH] Galactic - fix #661 --- .../examples/galactic_unicorn/feature_test_with_audio.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/micropython/examples/galactic_unicorn/feature_test_with_audio.py b/micropython/examples/galactic_unicorn/feature_test_with_audio.py index 55af285c..bc246ab2 100644 --- a/micropython/examples/galactic_unicorn/feature_test_with_audio.py +++ b/micropython/examples/galactic_unicorn/feature_test_with_audio.py @@ -252,7 +252,7 @@ while True: was_c_pressed = False if gu.is_pressed(GalacticUnicorn.SWITCH_D): - if not was_c_pressed: + if not was_d_pressed: # Stop synth (if running) and play Tone B timer.deinit() tone_b = 600 @@ -291,7 +291,7 @@ while True: channels[0].frequency(tone_a) if gu.is_pressed(GalacticUnicorn.SWITCH_SLEEP): - if not was_d_pressed: + if not was_z_pressed: # Stop synth and both tones tone_a = 0 tone_b = 0