We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a0b5b60 commit 77113a9Copy full SHA for 77113a9
features/FEATURE_BLE/source/generic/GenericGap.cpp
@@ -1480,16 +1480,16 @@ BLE_DEPRECATED_API_USE_END()
1480
1481
void GenericGap::on_scan_timeout()
1482
{
1483
+ if (!_scan_enabled) {
1484
+ return;
1485
+ }
1486
+
1487
/* if timeout happened on a 4.2 chip we need to stop the scan manually */
1488
if (is_extended_advertising_available()) {
1489
_pal_gap.scan_enable(false, false);
1490
set_random_address_rotation(false);
1491
}
1492
- if (!_scan_enabled) {
- return;
- }
-
1493
_scan_enabled = false;
1494
1495
if (!_eventHandler) {
0 commit comments