wait for serial to init
This commit is contained in:
parent
fa17de7c26
commit
102fa53f8b
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user