Skip to content

Commit 118806a

Browse files
committed
seperate PLAY_SOUNDS definition from default logic
1 parent 33eceaf commit 118806a

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

Metro/Metro_RP2350_Chips_Challenge/definitions.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,15 +49,17 @@
4949
dac.headphone_output = True
5050
dac.headphone_volume = -15 # dB
5151

52-
# Settings
5352
if ltv320_present:
54-
PLAY_SOUNDS = True
53+
_default_play_sounds = True
5554
else:
56-
PLAY_SOUNDS = False
55+
_default_play_sounds = False
5756

5857
if "sound" in launcher_config:
5958
if launcher_config["sound"] == "mute":
60-
PLAY_SOUNDS = False
59+
_default_play_sounds = False
60+
61+
# Settings
62+
PLAY_SOUNDS = _default_play_sounds
6163

6264
# Timing Constants
6365
TICKS_PER_SECOND = const(20)

0 commit comments

Comments
 (0)