Skip to content

HID Error: 'int' object is not iterable  #208

Closed
@snkYmkrct

Description

@snkYmkrct

The #205 PR is breaking the code in this guide https://learn.adafruit.com/doomscroll-and-chill-wireless-ble-scroll-wheel-rotary-encoder-remote

I didn't have time to investigate further, but loading the guide code with the latest library release crashes with:

Adafruit CircuitPython 9.2.1 on 2024-11-20; Adafruit Feather Bluefruit Sense with nRF52840
>>> 
soft reboot

Auto-reload is on. Simply save files over USB to run them or enter REPL to disable.
code.py output:
Traceback (most recent call last):
  File "code.py", line 90, in <module>
  File "adafruit_ble/services/standard/hid.py", line 356, in __init__
  File "adafruit_ble/services/standard/hid.py", line 445, in _init_devices
TypeError: 'int' object is not iterable

Reverting to library release 10.0.9 makes the code work as intended.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions