Changes in uspace/drv/usbhid/kbddev.c [1c6c4092:7a2f8ea0] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/usbhid/kbddev.c
r1c6c4092 r7a2f8ea0 255 255 usb_log_debug2("\nLock keys after: 0x%x\n\n", kbd_dev->lock_keys); 256 256 257 if (key = KC_CAPS_LOCK || key == KC_NUM_LOCK || key == KC_SCROLL_LOCK) {257 if (key == KC_CAPS_LOCK || key == KC_NUM_LOCK || key == KC_SCROLL_LOCK) { 258 258 // do not send anything to the console, this is our business 259 259 return; … … 289 289 290 290 usb_log_debug2("Sending key %d to the console\n", ev.key); 291 assert(kbd_dev->console_phone != -1); 291 if (kbd_dev->console_phone < 0) { 292 usb_log_warning( 293 "Connection to console not ready, key discarded.\n"); 294 return; 295 } 292 296 293 297 async_msg_4(kbd_dev->console_phone, KBD_EVENT, ev.type, ev.key,
Note:
See TracChangeset
for help on using the changeset viewer.