Skip to content

Commit

Permalink
hid: never skip global items
Browse files Browse the repository at this point in the history
  • Loading branch information
gyurco committed Oct 7, 2024
1 parent dcf16fe commit 0e30724
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions usb/hidparser.c
Original file line number Diff line number Diff line change
Expand Up @@ -333,22 +333,22 @@ bool parse_report_descriptor(uint8_t *rep, uint16_t rep_size, hid_report_t *conf

case 1:
hidp_extreme_debugf("LOGICAL_MINIMUM(%d/%d)", value, (int16_t)value);
if (!skip_report) logical_minimum = value;
logical_minimum = value;
break;

case 2:
hidp_extreme_debugf("LOGICAL_MAXIMUM(%d)", value);
if (!skip_report) logical_maximum = value;
logical_maximum = value;
break;

case 3:
hidp_extreme_debugf("PHYSICAL_MINIMUM(%d/%d)", value, (int16_t)value);
if (!skip_report) physical_minimum = value;
physical_minimum = value;
break;

case 4:
hidp_extreme_debugf("PHYSICAL_MAXIMUM(%d)", value);
if (!skip_report) physical_maximum = value;
physical_maximum = value;
break;

case 5:
Expand All @@ -361,7 +361,7 @@ bool parse_report_descriptor(uint8_t *rep, uint16_t rep_size, hid_report_t *conf

case 7:
hidp_extreme_debugf("REPORT_SIZE(%d)", value);
if (!skip_report) report_size = value;
report_size = value;
break;

case 8:
Expand All @@ -386,7 +386,7 @@ bool parse_report_descriptor(uint8_t *rep, uint16_t rep_size, hid_report_t *conf

case 9:
hidp_extreme_debugf("REPORT_COUNT(%d)", value);
if (!skip_report) report_count = value;
report_count = value;
break;

default:
Expand Down

0 comments on commit 0e30724

Please sign in to comment.