Skip to content

Commit e690442

Browse files
authored
Merge pull request #268 from ogatatsu/patch-2
Fix auto-start of advertising when central is connected
2 parents b3c4a08 + 4639558 commit e690442

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)