Changes in / [70a71e5:7787dd81] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/usbkbd/kbddev.c
r70a71e5 r7787dd81 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 274 277 if ((kbd_dev->mods & KM_NUM_LOCK) && (i < kbd_dev->led_output_size)) { 275 278 kbd_dev->led_data[i++] = USB_HID_LED_NUM_LOCK; 276 279 // leds |= USB_HID_LED_NUM_LOCK; 277 280 } 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;288 285 } 289 286 … … 292 289 kbd_dev->led_data[i++] = USB_HID_LED_SCROLL_LOCK; 293 290 // leds |= USB_HID_LED_SCROLL_LOCK; 294 }295 else {296 kbd_dev->led_data[i++] = 0;297 291 } 298 292
Note:
See TracChangeset
for help on using the changeset viewer.