Skip to content

Commit

Permalink
Merge pull request #209 from Neradoc/Neradoc-patch-1
Browse files Browse the repository at this point in the history
fix int not iterable error in _init_devices
  • Loading branch information
dhalbert authored Dec 2, 2024
2 parents 7c6c18f + 4c7a39a commit 10b3724
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions adafruit_ble/services/standard/hid.py
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@ def get_report_info(collection: Dict, reports: Dict) -> None:
usage = collection["locals"][0][0]
reports = {}
get_report_info(collection, reports)
for report_id, report in reports:
for report_id, report in reports.items():
output_size = report["output_size"]
if output_size > 0:
self.devices.append(
Expand All @@ -455,7 +455,7 @@ def get_report_info(collection: Dict, reports: Dict) -> None:
)
)

input_size = reports[report_id]["input_size"]
input_size = report["input_size"]
if input_size > 0:
self.devices.append(
ReportIn(
Expand Down

0 comments on commit 10b3724

Please sign in to comment.