Skip to content

Commit 3473ea1

Browse files
Try to fix audio_player
1 parent 2db9b4b commit 3473ea1

File tree

1 file changed

+0
-11
lines changed
  • internal_filesystem/apps/com.micropythonos.musicplayer/assets

1 file changed

+0
-11
lines changed

internal_filesystem/apps/com.micropythonos.musicplayer/assets/audio_player.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -285,14 +285,3 @@ def scale_audio(buf: ptr8, num_bytes: int, scale_fixed: int):
285285
cls._i2s = None
286286

287287

288-
289-
def optional_viper(func):
290-
"""Decorator to apply @micropython.viper if possible."""
291-
try:
292-
@micropython.viper
293-
@func # Wait, no—see below for proper chaining
294-
def wrapped(*args, **kwargs):
295-
return func(*args, **kwargs)
296-
return wrapped
297-
except SyntaxError:
298-
return func # Fallback to original

0 commit comments

Comments
 (0)