You've already forked MicroPythonOS
mirror of
https://github.com/m5stack/MicroPythonOS.git
synced 2026-05-20 11:51:27 -07:00
odroid_go.py: fix on_complete argument exception
This commit is contained in:
@@ -73,7 +73,7 @@ class BuzzerCallbacks:
|
||||
print("Unmute buzzer")
|
||||
self.dac_pin.value(1) # Unmute
|
||||
|
||||
def mute(self):
|
||||
def mute(self, unused=None): # This is used as rtttl's on_complete function, which passes a string message argument
|
||||
print("Mute buzzer")
|
||||
self.dac_pin.value(0) # Mute
|
||||
|
||||
|
||||
Reference in New Issue
Block a user