We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 688059b commit 1940f36Copy full SHA for 1940f36
src/USBStorage.cpp
@@ -1,4 +1,5 @@
1
#include "USBStorage.h"
2
+#include "Arduino_POSIXStorage.h"
3
4
// The maximum number of attempts to mount the USB drive
5
constexpr auto MAX_MOUNT_ATTEMPTS = 10;
@@ -27,7 +28,6 @@ void USBStorage::removeOnDisconnectCallback(){
27
28
deregister_unplug_callback(DEV_USB);
29
}
30
-
31
bool USBStorage::begin(){
32
int attempts = 0;
33
int err = mount(DEV_USB, this->fileSystem, MNT_DEFAULT);
0 commit comments