From 9df7fc9b7e603f21cd7216ee9bb085338a993caa Mon Sep 17 00:00:00 2001 From: Vincent Coubard Date: Thu, 10 Sep 2020 14:58:35 +0100 Subject: [PATCH] BLE: Fix state update when event handler not present --- connectivity/FEATURE_BLE/source/cordio/source/PalGapImpl.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/connectivity/FEATURE_BLE/source/cordio/source/PalGapImpl.cpp b/connectivity/FEATURE_BLE/source/cordio/source/PalGapImpl.cpp index 644c76e8ad..80bdea8ae1 100644 --- a/connectivity/FEATURE_BLE/source/cordio/source/PalGapImpl.cpp +++ b/connectivity/FEATURE_BLE/source/cordio/source/PalGapImpl.cpp @@ -701,7 +701,10 @@ void PalGap::gap_handler(const wsfMsgHdr_t *msg) break; case DM_EXT_SCAN_STOP_IND: { - if (!handler) { break; } + if (!handler) { + get_gap().ext_scan_stopping = false; + break; + } if (get_gap().ext_scan_stopping) { get_gap().ext_scan_stopping = false;