wait for serial to init

This commit is contained in:
Kevin Matz 2020-12-08 17:23:56 -05:00
parent fa17de7c26
commit 102fa53f8b

View File

@ -102,6 +102,7 @@ uint32_t change_time; // time of button press (ms)
*/ */
void setup() { void setup() {
Serial.begin(115200); Serial.begin(115200);
while (!Serial); // wait for serial attach
Serial.println("Disabling Bluetooth."); Serial.println("Disabling Bluetooth.");
btStop(); btStop();