Skip to content

Commit 172e969

Browse files
avoid init in header for compatibility
1 parent 331473a commit 172e969

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

connectivity/FEATURE_BLE/source/generic/GapImpl.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -369,6 +369,9 @@ Gap::Gap(
369369
_advertising_timeout(),
370370
_scan_timeout(),
371371
_user_manage_connection_parameter_requests(false)
372+
#if BLE_ROLE_OBSERVER
373+
, _scan_parameters_set(false)
374+
#endif // BLE_ROLE_OBSERVER
372375
{
373376
_pal_gap.initialize();
374377

connectivity/FEATURE_BLE/source/generic/GapImpl.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -992,7 +992,7 @@ class Gap :
992992

993993
bool _user_manage_connection_parameter_requests : 1;
994994
#if BLE_ROLE_OBSERVER
995-
bool _scan_parameters_set : 1 = false;
995+
bool _scan_parameters_set : 1;
996996
#endif // BLE_ROLE_OBSERVER
997997

998998
};

0 commit comments

Comments
 (0)