adafruit / Adafruit_TinyUSB_Arduino

Arduino library for TinyUSB
MIT License
477 stars 127 forks source link

delete or correct misspelled macro `CFG_TUD_ENDOINT0_SIZE` in port headers #374

Closed tlyu closed 7 months ago

tlyu commented 8 months ago

Is your feature request related to a problem? Please describe.

This is not currently causing a problem, with the code, but could cause confusion.

Describe the solution you'd like

Delete the misspelled CFG_TUD_ENDOINT0_SIZE macro definitions from the port headers, or correct the spelling.

Describe alternatives you've considered

N/A

Additional context

The correct spelling seems to be CFG_TUD_ENDPOINT0_SIZE, in tusb_option.h. It has a default setting if not defined, so the existing misspelling probably causes no actual problems with the code. The misspelled version is confusing to read, though.