add newline at end
and ignore global statement used for file name remember (Limor had said it's ok)
This commit is contained in:
parent
10cb98aa1d
commit
19a18bf4dd
1 changed files with 2 additions and 2 deletions
|
|
@ -28,7 +28,7 @@ gc_audio = audioio.AudioOut(board.A0)
|
|||
audio_file = None
|
||||
|
||||
def play_file(filename):
|
||||
global audio_file
|
||||
global audio_file # pylint: disable=global-statement
|
||||
if gc_audio.playing:
|
||||
gc_audio.stop()
|
||||
if audio_file:
|
||||
|
|
@ -49,4 +49,4 @@ while True:
|
|||
gc_audio.stop()
|
||||
if audio_file:
|
||||
audio_file.close()
|
||||
time.sleep(0.1)
|
||||
time.sleep(0.1)
|
||||
|
|
|
|||
Loading…
Reference in a new issue