We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ab840a9 commit 88c5167Copy full SHA for 88c5167
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