From bbf98603d7cf083e61f3aba7a71b5abb782c55c9 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..72823d3947 160000 --- a/Sming/Libraries/USB +++ b/Sming/Libraries/USB @@ -1 +1 @@ -Subproject commit 0717652a3095a3091d5bb56ed683474b2d72f0bf +Subproject commit 72823d3947f0fdd514acd1f9de2d97f99e3b87ce 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) {