Changes in / [7787dd81:70a71e5] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/usbkbd/kbddev.c
r7787dd81 r70a71e5 272 272 unsigned i = 0; 273 273 274 /* Reset the LED data. */275 memset(kbd_dev->led_data, 0, kbd_dev->led_output_size * sizeof(int32_t));276 277 274 if ((kbd_dev->mods & KM_NUM_LOCK) && (i < kbd_dev->led_output_size)) { 278 275 kbd_dev->led_data[i++] = USB_HID_LED_NUM_LOCK; 279 276 // leds |= USB_HID_LED_NUM_LOCK; 280 277 } 278 else { 279 kbd_dev->led_data[i++] = 0; 280 } 281 281 282 282 if ((kbd_dev->mods & KM_CAPS_LOCK) && (i < kbd_dev->led_output_size)) { 283 283 kbd_dev->led_data[i++] = USB_HID_LED_CAPS_LOCK; 284 284 // leds |= USB_HID_LED_CAPS_LOCK; 285 } 286 else { 287 kbd_dev->led_data[i++] = 0; 285 288 } 286 289 … … 289 292 kbd_dev->led_data[i++] = USB_HID_LED_SCROLL_LOCK; 290 293 // leds |= USB_HID_LED_SCROLL_LOCK; 294 } 295 else { 296 kbd_dev->led_data[i++] = 0; 291 297 } 292 298
Note:
See TracChangeset
for help on using the changeset viewer.