BLE: Fix state update when event handler not present

pull/13759/head
Vincent Coubard 2020-09-10 14:58:35 +01:00
parent 48f4cfbe04
commit 9df7fc9b7e
1 changed files with 4 additions and 1 deletions

View File

@ -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;