From df55bc42d2587122d521da7569f2ffa845ec1446 Mon Sep 17 00:00:00 2001 From: mikee47 Date: Thu, 12 Dec 2024 13:46:37 +0000 Subject: [PATCH] Update USB library with esp32sx host and OTG dual-mode support `USB::begin()` now requires parameter indicating mode (device or host) --- Sming/Libraries/USB | 2 +- samples/Basic_IFS/app/application.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Sming/Libraries/USB b/Sming/Libraries/USB index 0717652a30..6af107fbe2 160000 --- a/Sming/Libraries/USB +++ b/Sming/Libraries/USB @@ -1 +1 @@ -Subproject commit 0717652a3095a3091d5bb56ed683474b2d72f0bf +Subproject commit 6af107fbe25f7a8cb154ccea6ce9fb69e34dc60b diff --git a/samples/Basic_IFS/app/application.cpp b/samples/Basic_IFS/app/application.cpp index 8602249330..acaf936a8f 100644 --- a/samples/Basic_IFS/app/application.cpp +++ b/samples/Basic_IFS/app/application.cpp @@ -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) {