Skip to content

Commit 4639558

Browse files
authored
Fix auto-start of advertising when central is connected
1 parent cfd3f76 commit 4639558

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/Bluefruit52Lib/src/BLEAdvertising.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ void BLEAdvertising::_eventHandler(ble_evt_t* evt)
418418
break;
419419

420420
case BLE_GAP_EVT_DISCONNECTED:
421-
if ( bitRead(_conn_mask, conn_hdl) && (0 == Bluefruit.connected()) )
421+
if ( bitRead(_conn_mask, conn_hdl) && (0 == Bluefruit.Periph.connected()) )
422422
{
423423
bitClear(_conn_mask, conn_hdl);
424424

0 commit comments

Comments
 (0)