Skip to content

Commit a7e87c5

Browse files
authored
Merge pull request #28 from mirkopac/patch-1
fix while to recognize the inserted pen drive
2 parents a0e2532 + 1a05311 commit a7e87c5

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

examples/FileWrite/FileWrite.ino

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,8 @@ mbed::DigitalOut otg(PB_8, 1);
2323
void setup() {
2424
Serial.begin(115200);
2525
while (!Serial);
26-
msd.connect();
27-
28-
while (!msd.connected()) {
29-
//while (!port.connected()) {
26+
27+
while (!msd.connect()) {
3028
delay(1000);
3129
}
3230

0 commit comments

Comments
 (0)