From 102fa53f8b5e701b7a6c271511af6a7b4894a8ea Mon Sep 17 00:00:00 2001 From: Kevin Matz Date: Tue, 8 Dec 2020 17:23:56 -0500 Subject: [PATCH] wait for serial to init --- wiflash_esp32/wiflash_esp32.ino | 1 + 1 file changed, 1 insertion(+) diff --git a/wiflash_esp32/wiflash_esp32.ino b/wiflash_esp32/wiflash_esp32.ino index e50a13d..93f0c30 100644 --- a/wiflash_esp32/wiflash_esp32.ino +++ b/wiflash_esp32/wiflash_esp32.ino @@ -102,6 +102,7 @@ uint32_t change_time; // time of button press (ms) */ void setup() { Serial.begin(115200); + while (!Serial); // wait for serial attach Serial.println("Disabling Bluetooth."); btStop();