From 3fa8fbcec764bbd4e06db0306c15652b488af2ae 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..551327a6b1 160000 --- a/Sming/Libraries/USB +++ b/Sming/Libraries/USB @@ -1 +1 @@ -Subproject commit 0717652a3095a3091d5bb56ed683474b2d72f0bf +Subproject commit 551327a6b150d8182e3e7331b5cc6f0167f3a048 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) {