We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents aa57b0e + b7c6120 commit 5855ec1Copy full SHA for 5855ec1
src/utility/HCI.cpp
@@ -832,7 +832,10 @@ void HCIClass::handleEventPkt(uint8_t /*plen*/, uint8_t pdata[])
832
ATT.removeConnection(disconnComplete->handle, disconnComplete->reason);
833
L2CAPSignaling.removeConnection(disconnComplete->handle, disconnComplete->reason);
834
835
- HCI.leSetAdvertiseEnable(0x01);
+ if (GAP.advertising())
836
+ {
837
+ HCI.leSetAdvertiseEnable(0x01);
838
+ }
839
}
840
else if (eventHdr->evt == EVT_ENCRYPTION_CHANGE)
841
{
0 commit comments