Changes in uspace/lib/usbhid/src/hidpath.c [07525cd:feeac0d] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usbhid/src/hidpath.c
r07525cd rfeeac0d 237 237 usb_hid_report_usage_path_t, report_item) { 238 238 239 if (USB_HID_SAME_USAGE_PAGE(report_item->usage_page, 240 path_item->usage_page)) { 241 242 if (only_page == 0) { 243 if (USB_HID_SAME_USAGE(report_item->usage, 244 path_item->usage)) 239 if(USB_HID_SAME_USAGE_PAGE(report_item->usage_page, 240 path_item->usage_page)){ 241 242 if(only_page == 0){ 243 if(USB_HID_SAME_USAGE( 244 report_item->usage, 245 path_item->usage)) { 246 245 247 return EOK; 248 } 246 249 } 247 250 else { … … 265 268 report_link = report_path->items.head.next; 266 269 path_link = path->items.head.next; 267 268 while ((report_link != &report_path->items.head) &&269 (path_link != &path->items.head)) {270 270 271 while((report_link != &report_path->items.head) && 272 (path_link != &path->items.head)) { 273 271 274 report_item = list_get_instance(report_link, 272 273 275 usb_hid_report_usage_path_t, rpath_items_link); 276 274 277 path_item = list_get_instance(path_link, 275 278 usb_hid_report_usage_path_t, rpath_items_link); 276 279 277 if 278 280 if(!USB_HID_SAME_USAGE_PAGE(report_item->usage_page, 281 path_item->usage_page) || ((only_page == 0) && 279 282 !USB_HID_SAME_USAGE(report_item->usage, 280 path_item->usage))) { 283 path_item->usage))) { 284 281 285 return 1; 282 286 } else { … … 286 290 } 287 291 288 if ((((flags & USB_HID_PATH_COMPARE_BEGIN) != 0) && 289 (path_link == &path->items.head)) || 290 ((report_link == &report_path->items.head) && 291 (path_link == &path->items.head))) { 292 if((((flags & USB_HID_PATH_COMPARE_BEGIN) != 0) && 293 (path_link == &path->items.head)) || 294 ((report_link == &report_path->items.head) && 295 (path_link == &path->items.head))) { 296 292 297 return EOK; 293 } else { 298 } 299 else { 294 300 return 1; 295 } 301 } 296 302 break; 297 303
Note:
See TracChangeset
for help on using the changeset viewer.