From 4e26be92782b42ab6bcb4e5c89899687018e9442 Mon Sep 17 00:00:00 2001 From: pedromsousalima <32345730+pedromsousalima@users.noreply.github.com> Date: Mon, 16 Dec 2024 16:02:23 +0100 Subject: [PATCH 1/2] Updated example --- .../10.mega/boards/giga-r1-wifi/tutorials/giga-usb/giga-usb.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/hardware/10.mega/boards/giga-r1-wifi/tutorials/giga-usb/giga-usb.md b/content/hardware/10.mega/boards/giga-r1-wifi/tutorials/giga-usb/giga-usb.md index 662a5b5ccc..d9b8efaee6 100644 --- a/content/hardware/10.mega/boards/giga-r1-wifi/tutorials/giga-usb/giga-usb.md +++ b/content/hardware/10.mega/boards/giga-r1-wifi/tutorials/giga-usb/giga-usb.md @@ -358,7 +358,7 @@ void setup() { msd.connect(); - while (!msd.connected()) { + while (!msd.connect()) { Serial.print("MSD not found."); delay(1000); } From cfe95a2177992ea6f7fee63f24645a64a7d8250f Mon Sep 17 00:00:00 2001 From: pedromsousalima <32345730+pedromsousalima@users.noreply.github.com> Date: Mon, 16 Dec 2024 16:45:26 +0100 Subject: [PATCH 2/2] Added fix --- .../10.mega/boards/giga-r1-wifi/tutorials/giga-usb/giga-usb.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/hardware/10.mega/boards/giga-r1-wifi/tutorials/giga-usb/giga-usb.md b/content/hardware/10.mega/boards/giga-r1-wifi/tutorials/giga-usb/giga-usb.md index d9b8efaee6..d44513b96a 100644 --- a/content/hardware/10.mega/boards/giga-r1-wifi/tutorials/giga-usb/giga-usb.md +++ b/content/hardware/10.mega/boards/giga-r1-wifi/tutorials/giga-usb/giga-usb.md @@ -277,7 +277,7 @@ void setup() { msd.connect(); - while (!msd.connected()) { + while (!msd.connect()) { //while (!port.connected()) { delay(1000); }