Changeset 3ae26a8 in mainline for uspace/lib/usbhid


Ignore:
Timestamp:
2011-05-30T17:23:00Z (14 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
55f324f, c060090
Parents:
17d1542 (diff), 0dd3e49 (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:

Development branch changes

Location:
uspace/lib/usbhid/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/usbhid/src/hiddescriptor.c

    r17d1542 r3ae26a8  
    329329                usb_hid_report_type_t type) {
    330330
     331        if(report == NULL) {
     332                return NULL;
     333        }
     334
    331335        link_t *report_it = report->reports.next;
    332336        usb_hid_report_description_t *report_des = NULL;
     
    336340                                usb_hid_report_description_t, link);
    337341
    338                 if((report_des->report_id == report_id) &&
     342                // if report id not set, return the first of the type
     343                if(((report_des->report_id == report_id) || (report_id == 0)) &&
    339344                   (report_des->type == type)) {
    340345                        return report_des;
  • uspace/lib/usbhid/src/hidparser.c

    r17d1542 r3ae26a8  
    605605       
    606606        if(report_id > 0) {
    607                 report_it = usb_hid_report_find_description(report, report_id,
    608                         type)->link.next;               
     607                report_des = usb_hid_report_find_description(report, report_id,
     608                        type);
     609                if(report_des == NULL) {
     610                        return 0;
     611                }
     612                else {
     613                        report_it = report_des->link.next;
     614                }       
    609615        }
    610616        else {
  • uspace/lib/usbhid/src/hidpath.c

    r17d1542 r3ae26a8  
    211211
    212212        if(report_path->report_id != path->report_id) {
    213                 return 1;
     213                if(path->report_id != 0) {
     214                        return 1;
     215                }
    214216        }
    215217
Note: See TracChangeset for help on using the changeset viewer.