Changes in uspace/drv/hid/usbhid/kbd/kbdrepeat.c [b7fd2a0:5a6cc679] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/hid/usbhid/kbd/kbdrepeat.c
rb7fd2a0 r5a6cc679 69 69 unsigned int delay = 0; 70 70 71 usb_log_debug("Starting autorepeat loop. \n");71 usb_log_debug("Starting autorepeat loop."); 72 72 73 73 while (true) { 74 74 /* Check if the kbd structure is usable. */ 75 75 if (!usb_kbd_is_initialized(kbd)) { 76 usb_log_warning("kbd not ready, exiting autorepeat. \n");76 usb_log_warning("kbd not ready, exiting autorepeat."); 77 77 return; 78 78 } … … 82 82 if (kbd->repeat.key_new > 0) { 83 83 if (kbd->repeat.key_new == kbd->repeat.key_repeated) { 84 usb_log_debug2("Repeating key: %u. \n",84 usb_log_debug2("Repeating key: %u.", 85 85 kbd->repeat.key_repeated); 86 86 usb_kbd_push_ev(kbd, KEY_PRESS, … … 88 88 delay = kbd->repeat.delay_between; 89 89 } else { 90 usb_log_debug2("New key to repeat: %u. \n",90 usb_log_debug2("New key to repeat: %u.", 91 91 kbd->repeat.key_new); 92 92 kbd->repeat.key_repeated = kbd->repeat.key_new; … … 95 95 } else { 96 96 if (kbd->repeat.key_repeated > 0) { 97 usb_log_debug2("Stopping to repeat key: %u. \n",97 usb_log_debug2("Stopping to repeat key: %u.", 98 98 kbd->repeat.key_repeated); 99 99 kbd->repeat.key_repeated = 0; … … 119 119 errno_t usb_kbd_repeat_fibril(void *arg) 120 120 { 121 usb_log_debug("Autorepeat fibril spawned. \n");121 usb_log_debug("Autorepeat fibril spawned."); 122 122 123 123 if (arg == NULL) { 124 usb_log_error("No device! \n");124 usb_log_error("No device!"); 125 125 return EINVAL; 126 126 }
Note:
See TracChangeset
for help on using the changeset viewer.