Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset c7c0984a in mainline


Ignore:
Timestamp:
2011-04-21T20:47:24Z (11 years ago)
Author:
Matej Klonfar <maklf@…>
Branches:
lfn, master
Children:
2020927, eb393ad
Parents:
cfbbe1d3
Message:

Report IDs are not stored in Usage paths in the report structure fix

File:
1 edited

Legend:

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

    rcfbbe1d3 rc7c0984a  
    362362                                        offset_output = 0;
    363363                                        offset_feature = 0;
     364                                        usb_hid_report_path_set_report_id (usage_path, report_item->id);
    364365                                        break;
    365366
     
    12501251                return NULL;
    12511252        }
     1253
     1254        new_usage_path->report_id = usage_path->report_id;
    12521255       
    12531256        if(list_empty(&usage_path->head)){
     
    16391642        while(field_it != &report_des->report_items) {
    16401643                field = list_get_instance(field_it, usb_hid_report_field_t, link);
    1641                        
    1642                 usb_hid_report_path_append_item (field->collection_path, field->usage_page, field->usage);
    1643                 if(usb_hid_report_compare_usage_path (field->collection_path, path, flags) == EOK){
     1644
     1645                if(USB_HID_ITEM_FLAG_CONSTANT(field->item_flags) == 0) {
     1646                        usb_hid_report_path_append_item (field->collection_path, field->usage_page, field->usage);
     1647                        if(usb_hid_report_compare_usage_path (field->collection_path, path, flags) == EOK){
     1648                                usb_hid_report_remove_last_item (field->collection_path);
     1649                                return field;
     1650                        }
    16441651                        usb_hid_report_remove_last_item (field->collection_path);
    1645                         return field;
    1646                 }
    1647                 usb_hid_report_remove_last_item (field->collection_path);
    1648 
     1652                }
    16491653                field_it = field_it->next;
    16501654        }
Note: See TracChangeset for help on using the changeset viewer.