Skip to content

Commit 10b3724

Browse files
authored
Merge pull request #209 from Neradoc/Neradoc-patch-1
fix int not iterable error in _init_devices
2 parents 7c6c18f + 4c7a39a commit 10b3724

File tree

1 file changed

+2
-2
lines changed
  • adafruit_ble/services/standard

1 file changed

+2
-2
lines changed

adafruit_ble/services/standard/hid.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,7 @@ def get_report_info(collection: Dict, reports: Dict) -> None:
442442
usage = collection["locals"][0][0]
443443
reports = {}
444444
get_report_info(collection, reports)
445-
for report_id, report in reports:
445+
for report_id, report in reports.items():
446446
output_size = report["output_size"]
447447
if output_size > 0:
448448
self.devices.append(
@@ -455,7 +455,7 @@ def get_report_info(collection: Dict, reports: Dict) -> None:
455455
)
456456
)
457457

458-
input_size = reports[report_id]["input_size"]
458+
input_size = report["input_size"]
459459
if input_size > 0:
460460
self.devices.append(
461461
ReportIn(

0 commit comments

Comments
 (0)