Changeset 6a544f5 in mainline


Ignore:
Timestamp:
2011-05-26T12:46:01Z (13 years ago)
Author:
Lubos Slovak <lubos.slovak@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
6fe0beeb
Parents:
da56be2 (diff), 19a09d2d (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:

Report byte size with report ID.

File:
1 edited

Legend:

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

    rda56be2 r6a544f5  
    119119        }
    120120        else {
    121                 return (report_des->bit_length + 7) / 8;
     121                if(report_id == 0) {                   
     122                        return ((report_des->bit_length + 7) / 8) ;
     123                }
     124                else {
     125                        return 1 + ((report_des->bit_length + 7) / 8);
     126                }
    122127        }
    123128}
Note: See TracChangeset for help on using the changeset viewer.