Merge pull request #15515 from matkammusic/master

Correct scan parameters types
pull/15521/head
Martin Kojtal 2024-06-08 16:05:11 +01:00 committed by GitHub
commit 5249bb995b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 4 deletions

View File

@ -82,7 +82,7 @@ public:
/** /**
* Get the scan interval. * Get the scan interval.
*/ */
const scan_window_t &getInterval() const const scan_interval_t &getInterval() const
{ {
return interval; return interval;
} }
@ -90,7 +90,7 @@ public:
/** /**
* Get the scan window. * Get the scan window.
*/ */
const scan_interval_t &getWindow() const const scan_window_t &getWindow() const
{ {
return window; return window;
} }
@ -121,8 +121,8 @@ public:
*/ */
ScanParameters( ScanParameters(
phy_t phy = phy_t::LE_1M, phy_t phy = phy_t::LE_1M,
scan_window_t scan_interval = scan_interval_t::min(), scan_interval_t scan_interval = scan_interval_t::min(),
scan_interval_t scan_window = scan_window_t::min(), scan_window_t scan_window = scan_window_t::min(),
bool active_scanning = false, bool active_scanning = false,
own_address_type_t own_address_type = own_address_type_t::RANDOM, own_address_type_t own_address_type = own_address_type_t::RANDOM,
scanning_filter_policy_t scanning_filter_policy = scanning_filter_policy_t::NO_FILTER scanning_filter_policy_t scanning_filter_policy = scanning_filter_policy_t::NO_FILTER