Changeset 767da0a in mainline


Ignore:
Timestamp:
2011-03-05T18:25:43Z (14 years ago)
Author:
Matej Klonfar <maklf@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
3de529c
Parents:
fad14d7
Message:

reort parser - data translation bug fix

File:
1 edited

Legend:

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

    rfad14d7 r767da0a  
    3333 * @brief HID parser implementation.
    3434 */
    35 
    3635
    3736#include <usb/classes/hidparser.h>
     
    500499                printf("\tUSAGE: %X\n", report_item->usage);
    501500                printf("\tUSAGE PAGE: %X\n", report_item->usage_page);
     501                printf("\tLOGMIN: %X\n", report_item->logical_minimum);
     502                printf("\tLOGMAX: %X\n", report_item->logical_maximum);         
     503                printf("\tPHYMIN: %X\n", report_item->physical_minimum);               
     504                printf("\tPHYMAX: %X\n", report_item->physical_maximum);                               
    502505                printf("\n");           
    503506
     
    700703        usb_log_debug2("---\n\n");
    701704
    702         return (int)(((value - item->physical_minimum) / resolution) + item->logical_minimum);
     705        return (int)(((value - item->logical_minimum) / resolution) + item->physical_minimum);
    703706       
    704707}
Note: See TracChangeset for help on using the changeset viewer.