Skip to content

Commit 986e4d6

Browse files
committed
calling stop on the audio before shutting it down
1 parent 4aeab98 commit 986e4d6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

adafruit_pyportal/peripherals.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@ def play_file(self, file_name, wait_to_finish=True):
161161

162162
def stop_play(self):
163163
"""Stops playing a wav file."""
164+
self.audio.stop()
164165
if self.wavfile is not None:
165166
self.wavfile.close()
166167
self._speaker_enable.value = False

0 commit comments

Comments
 (0)