Changeset 19a09d2d in mainline


Ignore:
Timestamp:
2011-05-26T11:53:45Z (13 years ago)
Author:
Matej Klonfar <maklf@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
14e1bcc, 6a544f5
Parents:
5f9b81af
Message:

report byte size function considers the report_id field

File:
1 edited

Legend:

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

    r5f9b81af r19a09d2d  
    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.