We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ac18ae1 commit bb64b63Copy full SHA for bb64b63
ev3dev/core.py
@@ -2350,14 +2350,14 @@ def tone(*args):
2350
"""
2351
def play_tone_sequence(tone_sequence):
2352
def beep_args(frequency=None, duration=None, delay=None):
2353
- args = '-n '
+ args = ''
2354
if frequency is not None: args += '-f %s ' % frequency
2355
if duration is not None: args += '-l %s ' % duration
2356
if delay is not None: args += '-D %s ' % delay
2357
2358
return args
2359
2360
- return Sound.beep(' '.join([beep_args(*t) for t in tone_sequence]))
+ return Sound.beep(' -n '.join([beep_args(*t) for t in tone_sequence]))
2361
2362
if len(args) == 1:
2363
return play_tone_sequence(args[0])
0 commit comments