remove Serial.started(), make it safe to call Serial.begin() multiple times

This commit is contained in:
hathach committed 2018-10-18 14:38:43 +07:00
1 parent 7e6891e5c8
commit 49691adb81
6 files changed
+20 -11

No files matched your search

+2 -2
View File
@@ -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