skip wait for Serial in bleuart sketch
This commit is contained in:
1 parent
49028ba75a
commit
a557014d95
2 files changed
+10
-4
No files matched your search
+9
-3
@@ -44,13 +44,19 @@ static void loop_task(void* arg)
|
||||
{
|
||||
(void) arg;
|
||||
|
||||
setup();
|
||||
|
||||
#if CFG_DEBUG
|
||||
// If Serial is not begin(), call it to avoid hard fault
|
||||
if ( !Serial ) Serial.begin(115200);
|
||||
|
||||
// Wait for Serial connection in debug mode
|
||||
while ( !Serial ) yield();
|
||||
|
||||
dbgPrintVersion();
|
||||
// dbgMemInfo();
|
||||
#endif
|
||||
|
||||
setup();
|
||||
|
||||
#if CFG_DEBUG
|
||||
Bluefruit_printInfo();
|
||||
#endif
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@ BLEBas blebas; // battery
|
||||
void setup()
|
||||
{
|
||||
Serial.begin(115200);
|
||||
while ( !Serial ) delay(10); // for nrf52840 with native usb
|
||||
// while ( !Serial ) delay(10); // for nrf52840 with native usb
|
||||
|
||||
Serial.println("Bluefruit52 BLEUART Example");
|
||||
Serial.println("---------------------------\n");
|
||||
|
||||
Reference in new issue
Block a user