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 9081293 commit adbe5ccCopy full SHA for adbe5cc
src/USBStorage.cpp
@@ -6,6 +6,8 @@
6
7
#define MAX_TRIES 10
8
9
+bool USBStorage::usb_available = false;
10
+
11
USBStorage::USBStorage(){
12
#if defined(ARDUINO_PORTENTA_C33)
13
register_hotplug_callback(DEV_USB, [](){
src/USBStorage.h
@@ -3,9 +3,6 @@
3
#ifndef USBStorage_H
4
#define USBStorage_H
5
-
-static bool usb_available = false;
/**
* Represents a USB storage using the Arduino Unified Storage library.
*/
@@ -84,6 +81,7 @@ class USBStorage : public Arduino_UnifiedStorage {
84
81
bool connected = false;
85
82
unsigned long previousMillis;
86
83
int interval = 500;
+ static bool usb_available;
87
};
88
89
#endif
0 commit comments