Changeset a1732929 in mainline for uspace/drv/hid/usbhid/kbd/kbdrepeat.c
- Timestamp:
- 2018-01-15T17:04:34Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 9ff99e8
- Parents:
- c1a966e
- git-author:
- Ondřej Hlavatý <aearsis@…> (2018-01-15 17:04:32)
- git-committer:
- Ondřej Hlavatý <aearsis@…> (2018-01-15 17:04:34)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/hid/usbhid/kbd/kbdrepeat.c
rc1a966e ra1732929 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 int 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.