You've already forked MicroPythonOS
mirror of
https://github.com/m5stack/MicroPythonOS.git
synced 2026-05-20 11:51:27 -07:00
Try to fix audio_player
This commit is contained in:
@@ -285,14 +285,3 @@ class AudioPlayer:
|
||||
cls._i2s = None
|
||||
|
||||
|
||||
|
||||
def optional_viper(func):
|
||||
"""Decorator to apply @micropython.viper if possible."""
|
||||
try:
|
||||
@micropython.viper
|
||||
@func # Wait, no—see below for proper chaining
|
||||
def wrapped(*args, **kwargs):
|
||||
return func(*args, **kwargs)
|
||||
return wrapped
|
||||
except SyntaxError:
|
||||
return func # Fallback to original
|
||||
|
||||
Reference in New Issue
Block a user