avoid init in header for compatibility

pull/14603/head
Paul Szczepanek 2021-04-28 16:29:26 +01:00
parent 331473a706
commit 172e9697da
2 changed files with 4 additions and 1 deletions

View File

@ -369,6 +369,9 @@ Gap::Gap(
_advertising_timeout(),
_scan_timeout(),
_user_manage_connection_parameter_requests(false)
#if BLE_ROLE_OBSERVER
, _scan_parameters_set(false)
#endif // BLE_ROLE_OBSERVER
{
_pal_gap.initialize();

View File

@ -992,7 +992,7 @@ private:
bool _user_manage_connection_parameter_requests : 1;
#if BLE_ROLE_OBSERVER
bool _scan_parameters_set : 1 = false;
bool _scan_parameters_set : 1;
#endif // BLE_ROLE_OBSERVER
};