We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7d735c7 commit ae6881eCopy full SHA for ae6881e
src/utility/HCI.cpp
@@ -820,7 +820,10 @@ void HCIClass::handleEventPkt(uint8_t /*plen*/, uint8_t pdata[])
820
ATT.removeConnection(disconnComplete->handle, disconnComplete->reason);
821
L2CAPSignaling.removeConnection(disconnComplete->handle, disconnComplete->reason);
822
823
- HCI.leSetAdvertiseEnable(0x01);
+ if (GAP.advertising())
824
+ {
825
+ HCI.leSetAdvertiseEnable(0x01);
826
+ }
827
}
828
else if (eventHdr->evt == EVT_ENCRYPTION_CHANGE)
829
{
0 commit comments