Skip to content

Commit

Permalink
Update USB library with esp32sx host and OTG dual-mode support
Browse files Browse the repository at this point in the history
`USB::begin()` now requires parameter indicating mode (device or host)
  • Loading branch information
mikee47 committed Dec 12, 2024
1 parent ae99690 commit df55bc4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion samples/Basic_IFS/app/application.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ bool initFileSystem()
#endif

#ifdef ENABLE_USB_STORAGE
USB::begin();
USB::begin(true);
USB::MSC::onMount([](auto inst) {
usbStorage.begin(inst);
usbStorage.enumerate([](auto& unit, const USB::MSC::Inquiry& inquiry) {
Expand Down

0 comments on commit df55bc4

Please sign in to comment.