Changeset 70a71e5 in mainline for uspace/drv/usbkbd/kbddev.c


Ignore:
Timestamp:
2011-04-01T13:18:42Z (14 years ago)
Author:
Matej Klonfar <maklf@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
7787dd81, bda06a3
Parents:
ad7bb42
Message:

Output API fix

File:
1 edited

Legend:

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

    rad7bb42 r70a71e5  
    276276//              leds |= USB_HID_LED_NUM_LOCK;
    277277        }
     278        else {
     279            kbd_dev->led_data[i++] = 0;
     280        }
    278281       
    279282        if ((kbd_dev->mods & KM_CAPS_LOCK) && (i < kbd_dev->led_output_size)) {
    280283                kbd_dev->led_data[i++] = USB_HID_LED_CAPS_LOCK;
    281284//              leds |= USB_HID_LED_CAPS_LOCK;
     285        }
     286        else {
     287            kbd_dev->led_data[i++] = 0;
    282288        }
    283289       
     
    286292                kbd_dev->led_data[i++] = USB_HID_LED_SCROLL_LOCK;
    287293//              leds |= USB_HID_LED_SCROLL_LOCK;
     294        }
     295        else {
     296            kbd_dev->led_data[i++] = 0;
    288297        }
    289298       
Note: See TracChangeset for help on using the changeset viewer.