Skip to content

Commit 7bba905

Browse files
authored
Fix file path formatting in play method
1 parent ecf4d74 commit 7bba905

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

embedded/jingles.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def boot_sync(self):
1616
self.buzzer.off()
1717

1818
async def play(self, file):
19-
with open(f"aud_jingles/file") as jingle_file:
19+
with open(f"aud_jingles/{file}") as jingle_file:
2020
self.buzzer.on()
2121
for action in jingle_file:
2222
action_split = action.split('#', 1)[0].split(' ', 1)

0 commit comments

Comments
 (0)