Skip to content

changing CFG_TUD_HID from 2 -> 1 compile issues #496

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
JeffCalwood opened this issue Feb 24, 2025 · 0 comments
Open

changing CFG_TUD_HID from 2 -> 1 compile issues #496

JeffCalwood opened this issue Feb 24, 2025 · 0 comments
Labels
Bug Something isn't working

Comments

@JeffCalwood
Copy link

Operating System

Windows 10

Arduino IDE version

Arduino 2.3.4

Board

Feather M0 Adalogger (SAMD21)

ArduinoCore version

1.8.5

TinyUSB Library version

3.4.1

Sketch as ATTACHED TXT

Compiled Log as ATTACHED TXT

too many initializers in Adafruit_USBD_HID.cpp line ~33

Adafruit_USBD_HID *_hid_instances[CFG_TUD_HID] = { (Adafruit_USBD_HID*)(0x14254), (Adafruit_USBD_HID*)(0x9225) };

What happened ?

not too difficult to fix with a #if CFG_TUD_HID== ... . But it seems these might be magic values from the testing phase, no ?

#if CFG_TUD_HID==2
  Adafruit_USBD_HID *_hid_instances[CFG_TUD_HID] = { (Adafruit_USBD_HID*)(0x14254), (Adafruit_USBD_HID*)(0x9225) };
#elif CFG_TUD_HID==1
  Adafruit_USBD_HID *_hid_instances[CFG_TUD_HID] = {0};
#endif

How to reproduce ?

Debug Log

No response

Screenshots

No response

@JeffCalwood JeffCalwood added the Bug Something isn't working label Feb 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant