Changes in / [7787dd81:70a71e5] in mainline


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/usbkbd/kbddev.c

    r7787dd81 r70a71e5  
    272272        unsigned i = 0;
    273273       
    274         /* Reset the LED data. */
    275         memset(kbd_dev->led_data, 0, kbd_dev->led_output_size * sizeof(int32_t));
    276        
    277274        if ((kbd_dev->mods & KM_NUM_LOCK) && (i < kbd_dev->led_output_size)) {
    278275                kbd_dev->led_data[i++] = USB_HID_LED_NUM_LOCK;
    279276//              leds |= USB_HID_LED_NUM_LOCK;
    280277        }
     278        else {
     279            kbd_dev->led_data[i++] = 0;
     280        }
    281281       
    282282        if ((kbd_dev->mods & KM_CAPS_LOCK) && (i < kbd_dev->led_output_size)) {
    283283                kbd_dev->led_data[i++] = USB_HID_LED_CAPS_LOCK;
    284284//              leds |= USB_HID_LED_CAPS_LOCK;
     285        }
     286        else {
     287            kbd_dev->led_data[i++] = 0;
    285288        }
    286289       
     
    289292                kbd_dev->led_data[i++] = USB_HID_LED_SCROLL_LOCK;
    290293//              leds |= USB_HID_LED_SCROLL_LOCK;
     294        }
     295        else {
     296            kbd_dev->led_data[i++] = 0;
    291297        }
    292298       
Note: See TracChangeset for help on using the changeset viewer.