Skip to content

Fix CDC fallback logic/path, add ESP32 CDC examples#22

Open
Syndric wants to merge 5 commits intobertmelis:mainfrom
Syndric:fix/fallback
Open

Fix CDC fallback logic/path, add ESP32 CDC examples#22
Syndric wants to merge 5 commits intobertmelis:mainfrom
Syndric:fix/fallback

Conversation

@Syndric
Copy link
Copy Markdown

@Syndric Syndric commented Apr 1, 2026

Fix CDC fallback paths to work with dual ESP32, one as a host and the other as a peripheral.

  • Fixed a small typo, host_line_coding was being get, not set
  • Asserted the USB control line. Otherwise, communication only works one way from Host -> Peripheral.
  • Added examples for ease of testing
  • Fixed panic if invalid state upon CDC disconnect
  • Fix reconnection logic with semaphore
  • Added delays to allow for CDC to stabilize (use case: pressing the reset on peripheral)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant