summaryrefslogtreecommitdiff
path: root/console-client/generic-speaker.c
diff options
context:
space:
mode:
Diffstat (limited to 'console-client/generic-speaker.c')
-rw-r--r--console-client/generic-speaker.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/console-client/generic-speaker.c b/console-client/generic-speaker.c
index 9288cd24..05e64875 100644
--- a/console-client/generic-speaker.c
+++ b/console-client/generic-speaker.c
@@ -441,7 +441,7 @@ generic_speaker_beep (void *handle)
if (timer_remove (&generic_speaker_timer))
beep_off ();
generic_speaker_timer.fnc_data = beep[active_beep];
- beep[0]->next = &beep[active_beep]->note[1];
+ beep[active_beep]->next = &beep[active_beep]->note[1];
beep_on (beep[active_beep]->note[0].pitch);
generic_speaker_timer.expires = fetch_jiffies ()
+ (60 * HZ * beep[active_beep]->note[0].duration