Skip to content

Commit

Permalink
Merge pull request #63 from j3hyde/fix-usage-range-off-by-one
Browse files Browse the repository at this point in the history
Fixes off-by-one when looping over a Usage range.
  • Loading branch information
rene-aguirre authored Jul 14, 2020
2 parents 954c4b2 + c4833ab commit bbf8c54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pywinusb/hid/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -1222,7 +1222,7 @@ def __init__(self, hid_object, report_type, report_id):
self.__value_array_items.append(report_item)
else:
for usage_id in range(item.usage_min,
item.usage_max):
item.usage_max+1):
report_item = ReportItem(self, item, usage_id)
self.__items[report_item.key()] = report_item
self.__idx_items[report_item.data_index] = report_item
Expand Down

0 comments on commit bbf8c54

Please sign in to comment.