Skip to content

Commit bb64b63

Browse files
committed
The '-n' arg in beep should not be used for the first tone.
Fixes #82.
1 parent ac18ae1 commit bb64b63

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ev3dev/core.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2350,14 +2350,14 @@ def tone(*args):
23502350
"""
23512351
def play_tone_sequence(tone_sequence):
23522352
def beep_args(frequency=None, duration=None, delay=None):
2353-
args = '-n '
2353+
args = ''
23542354
if frequency is not None: args += '-f %s ' % frequency
23552355
if duration is not None: args += '-l %s ' % duration
23562356
if delay is not None: args += '-D %s ' % delay
23572357

23582358
return args
23592359

2360-
return Sound.beep(' '.join([beep_args(*t) for t in tone_sequence]))
2360+
return Sound.beep(' -n '.join([beep_args(*t) for t in tone_sequence]))
23612361

23622362
if len(args) == 1:
23632363
return play_tone_sequence(args[0])

0 commit comments

Comments
 (0)