File tree Expand file tree Collapse file tree 2 files changed +10
-4
lines changed
libraries/Bluefruit52Lib/examples/Peripheral/bleuart Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -44,13 +44,19 @@ static void loop_task(void* arg)
44
44
{
45
45
(void ) arg;
46
46
47
- setup ();
48
-
49
47
#if CFG_DEBUG
50
48
// If Serial is not begin(), call it to avoid hard fault
51
49
if ( !Serial ) Serial.begin (115200 );
50
+
51
+ // Wait for Serial connection in debug mode
52
+ while ( !Serial ) yield ();
53
+
52
54
dbgPrintVersion ();
53
- // dbgMemInfo();
55
+ #endif
56
+
57
+ setup ();
58
+
59
+ #if CFG_DEBUG
54
60
Bluefruit_printInfo ();
55
61
#endif
56
62
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ BLEBas blebas; // battery
24
24
void setup ()
25
25
{
26
26
Serial.begin (115200 );
27
- while ( !Serial ) delay (10 ); // for nrf52840 with native usb
27
+ // while ( !Serial ) delay(10); // for nrf52840 with native usb
28
28
29
29
Serial.println (" Bluefruit52 BLEUART Example" );
30
30
Serial.println (" ---------------------------\n " );
You can’t perform that action at this time.
0 commit comments