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 c6e987d commit f125e54Copy full SHA for f125e54
src/USBStorage.cpp
@@ -69,31 +69,6 @@ bool USBStorage::isConnected(){
69
return this -> connected;
70
}
71
72
-
73
-/*
74
75
76
-void USBStorage::checkConnection(){
77
- #if defined(ARDUINO_PORTENTA_H7_M7)
78
- USBHost * host;
79
- USBDeviceConnected * dev;
80
- unsigned long currentMillis = millis();
81
- boolean found = false;
82
83
- if (currentMillis - previousMillis >= interval) {
84
- this -> previousMillis = currentMillis;
85
- host = USBHost::getHostInst();
86
- if(host->getDevice(0) != NULL){
87
- this->available = true;
88
- } else {
89
- this->available = false;
90
- }
91
92
- #endif
93
-}
94
-*/
95
96
97
void USBStorage::checkConnection(){
98
#if defined(ARDUINO_PORTENTA_H7_M7)
99
USBHost * host;
0 commit comments