summaryrefslogtreecommitdiff
path: root/console-client/generic-speaker.c
diff options
context:
space:
mode:
authorMarcus Brinkmann <marcus@gnu.org>2002-11-18 07:35:47 +0000
committerMarcus Brinkmann <marcus@gnu.org>2002-11-18 07:35:47 +0000
commitcc2742affd7433812e9a3b5407990700be8ebf55 (patch)
treeff289cebad4ce9210c668e7d10170d052c137886 /console-client/generic-speaker.c
parentd75b31ece55771c9462336a0a31ae22c68d038c6 (diff)
2002-11-18 Marcus Brinkmann <marcus@gnu.org>
* console.c (main): Pass ERR to error invocation. * generic-speaker.c (generic_spaker_beep): Use currently active beep's next pointer, instead index 0. * pc-kbd.c: New global variables led_state and gnumach_v1_compat. (enum scancode): Change to set 2 encoding. (enum scancode_x1): Likewise. (enum scancode_x2): New type. (sc_to_kc): Change to set 2 encoding. (sc_x1_to_kc): Likewise. (sc_set1_to_set2): New variable. (sc_set1_to_set2_x1): Likewise. (gnumach_v1_input_next): New function. (update_leds): Likewise. (input_next): Likewise. (input_loop): Use input_next or gnumach_v1_input_next to read next key code. (pc_kbd_start): Add support for current GNU Mach @>=kbd interface. Call update_leds and toggle led_state. (pc_kbd_fini): Add support for current GNU Mach. (pc_kbd_set_scroll_lock_status): Toggle led_state and call update_leds. * vga-support.c (vga_init): Add support for current GNU Mach's I/O permission bitmap handling and its mem device.
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