Changeset 81c508c in mainline for uspace/lib/usb/src/hidparser.c


Ignore:
Timestamp:
2011-02-27T00:25:28Z (14 years ago)
Author:
Lubos Slovak <lubos.slovak@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
299d53e, cc44f7e
Parents:
b8622e2 (diff), c2fa801 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

USBHID: logging (#76), modifiers (#65), locks (#66), LEDs (#26), init (#67).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/usb/src/hidparser.c

    rb8622e2 r81c508c  
    144144int usb_hid_boot_keyboard_output_report(uint8_t leds, uint8_t *data, size_t size)
    145145{
    146         if(size != 1){
     146        if (size < 1){
    147147                return -1;
    148148        }
    149149
    150         /* used only first five bits, others are only padding*/
    151         *data = leds;
     150        data[0] = leds;
    152151        return EOK;
    153152}
Note: See TracChangeset for help on using the changeset viewer.