Rename hasCustomFilter to usesCustomFilters (#115)

This commit is contained in:
Rohit Sangwan
2024-12-09 21:14:48 +05:30
committed by GitHub
parent 437eca70af
commit 7187768bd0
5 changed files with 8 additions and 8 deletions
+2 -2
View File
@@ -125,9 +125,9 @@ namespace universal_ble
if (filter != nullptr)
{
// Native filter supports only 1 service
bool hasCustomFilters = filter->with_services().size() > 1 || filter->with_manufacturer_data().size() > 0 || filter->with_name_prefix().size() > 0;
bool usesCustomFilters = filter->with_services().size() > 1 || filter->with_manufacturer_data().size() > 0 || filter->with_name_prefix().size() > 0;
if (hasCustomFilters)
if (usesCustomFilters)
{
std::cout << "Using Custom Scan Filter" << std::endl;
setScanFilter(*filter);