Changeset b53d3b7 in mainline for uspace/drv/usbhid/kbddev.c


Ignore:
Timestamp:
2011-03-25T13:40:00Z (13 years ago)
Author:
Matej Klonfar <maklf@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
8c40822, 96bfe76
Parents:
55e388a1
Message:

bitmap data parsing bug fix
parser initialization check bug fix
querying report data by usage path

File:
1 edited

Legend:

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

    r55e388a1 rb53d3b7  
    585585//      int rc = usb_hid_boot_keyboard_input_report(buffer, actual_size,
    586586//          callbacks, kbd_dev);
     587        usb_hid_report_path_t *path = usb_hid_report_path();
     588        usb_hid_report_path_append_item(path, USB_HIDUT_PAGE_KEYBOARD, 0);
     589       
    587590        int rc = usb_hid_parse_report(kbd_dev->hid_dev->parser, buffer,
    588             actual_size, callbacks, kbd_dev);
     591            actual_size, path, USB_HID_PATH_COMPARE_STRICT, callbacks, kbd_dev);
     592
     593        usb_hid_report_path_free (path);
    589594       
    590595        if (rc != EOK) {
     
    694699//      kbd_dev->key_count = BOOTP_REPORT_SIZE;
    695700       
    696         usb_hid_report_path_t path;
    697         path.usage_page = USB_HIDUT_PAGE_KEYBOARD;
     701        usb_hid_report_path_t *path;
     702        path = usb_hid_report_path();
     703        usb_hid_report_path_append_item(path, USB_HIDUT_PAGE_KEYBOARD, 0);
    698704        kbd_dev->key_count = usb_hid_report_input_length(
    699             kbd_dev->hid_dev->parser, &path);
     705            kbd_dev->hid_dev->parser, path, USB_HID_PATH_COMPARE_STRICT);
     706        usb_hid_report_path_free (path);
    700707       
    701708        usb_log_debug("Size of the input report: %zu\n", kbd_dev->key_count);
Note: See TracChangeset for help on using the changeset viewer.