remove Serial.started(), make it safe to call Serial.begin() multiple times
This commit is contained in:
1 parent
7e6891e5c8
commit
49691adb81
6 files changed
+20
-11
No files matched your search
@@ -637,14 +637,14 @@ void Bluefruit_printInfo(void)
|
||||
void AdafruitBluefruit::printInfo(void)
|
||||
{
|
||||
// Skip if Serial is not initialised
|
||||
if ( !Serial.started() ) return;
|
||||
if ( !Serial ) return;
|
||||
|
||||
// Skip if Bluefruit.begin() is not called
|
||||
if ( _ble_event_sem == NULL ) return;
|
||||
|
||||
Serial.println("--------- SoftDevice Config ---------");
|
||||
|
||||
char const * title_fmt = "%-16s: ";
|
||||
char const * title_fmt = "%-16s: ";
|
||||
|
||||
/*------------- SoftDevice Config -------------*/
|
||||
// Max uuid128
|
||||
|
||||
Reference in new issue
Block a user