Skip to content

Commit c198e84

Browse files
committed
Update to allow for future versions of CP to work
1 parent 65d6950 commit c198e84

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_circuitplayground/express.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -689,7 +689,7 @@ def play_file(self, file_name):
689689
"""
690690
# Play a specified file.
691691
self._speaker_enable.value = True
692-
if sys.implementation.version[0] == 3:
692+
if sys.implementation.version[0] >= 3:
693693
audio = audioio.AudioOut(board.SPEAKER)
694694
file = audioio.WaveFile(open(file_name, "rb"))
695695
audio.play(file)

0 commit comments

Comments
 (0)