Changeset 28d7185 in mainline for uspace/lib/usb/src/hidparser.c
- Timestamp:
- 2011-04-22T10:40:52Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 664a331c, 94c0dcbd
- Parents:
- 7304663
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usb/src/hidparser.c
r7304663 r28d7185 175 175 if(report_item->usages_count > 0 && ((report_item->usage_minimum == 0) && (report_item->usage_maximum == 0))) { 176 176 uint32_t usage; 177 if(report_item->type == USB_HID_REPORT_TYPE_INPUT) {177 if(report_item->type != USB_HID_REPORT_TYPE_INPUT) { 178 178 if(i < report_item->usages_count){ 179 179 usage = report_item->usages[i]; … … 193 193 194 194 195 if((usage & 0xFF 00) != 0){195 if((usage & 0xFFFF0000) != 0){ 196 196 field->usage_page = (usage >> 16); 197 field->usage = (usage & 0xFF );197 field->usage = (usage & 0xFFFF); 198 198 } 199 199 else {
Note:
See TracChangeset
for help on using the changeset viewer.