mirror of https://github.com/ARMmbed/mbed-os.git
BLE: Fix state update when event handler not present
parent
48f4cfbe04
commit
9df7fc9b7e
|
@ -701,7 +701,10 @@ void PalGap::gap_handler(const wsfMsgHdr_t *msg)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case DM_EXT_SCAN_STOP_IND: {
|
case DM_EXT_SCAN_STOP_IND: {
|
||||||
if (!handler) { break; }
|
if (!handler) {
|
||||||
|
get_gap().ext_scan_stopping = false;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
if (get_gap().ext_scan_stopping) {
|
if (get_gap().ext_scan_stopping) {
|
||||||
get_gap().ext_scan_stopping = false;
|
get_gap().ext_scan_stopping = false;
|
||||||
|
|
Loading…
Reference in New Issue