From 020a2ce8df8745d48ee06f41ddfd8dfe1bb0adca Mon Sep 17 00:00:00 2001 From: jgromes Date: Mon, 20 May 2024 18:08:27 +0200 Subject: [PATCH] [LR11x0] Do not use yield in example --- .../LR11x0/LR11x0_Firmware_Update/LR11x0_Firmware_Update.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/LR11x0/LR11x0_Firmware_Update/LR11x0_Firmware_Update.ino b/examples/LR11x0/LR11x0_Firmware_Update/LR11x0_Firmware_Update.ino index 43e7148f..97fbdaea 100644 --- a/examples/LR11x0/LR11x0_Firmware_Update/LR11x0_Firmware_Update.ino +++ b/examples/LR11x0/LR11x0_Firmware_Update/LR11x0_Firmware_Update.ino @@ -71,7 +71,7 @@ void setup() { // prompt the user Serial.println(F("[LR1110] Send any character to start the update")); - while(!Serial.available()) { yield(); } + while(!Serial.available()) { delay(1); } // upload update into LR11x0 non-volatile memory Serial.print(F("[LR1110] Updating firmware, this may take several seconds ... "));