Skip to content

Commit 8060fdf

Browse files
remove flags
1 parent 9e566b9 commit 8060fdf

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

BLE_Privacy/source/main.cpp

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -357,10 +357,6 @@ class PrivacyPeripheral : public PrivacyDevice {
357357
{
358358
GapAdvertisingData advertising_data;
359359

360-
/* add advertising flags */
361-
advertising_data.addFlags(GapAdvertisingData::LE_GENERAL_DISCOVERABLE
362-
| GapAdvertisingData::BREDR_NOT_SUPPORTED);
363-
364360
/* add device name */
365361
advertising_data.addData(
366362
GapAdvertisingData::COMPLETE_LOCAL_NAME,
@@ -479,11 +475,6 @@ class PrivacyCentral : public PrivacyDevice {
479475

480476
if (record_length < 2) {
481477
/* malformed record */
482-
} else if ((type == GapAdvertisingData::FLAGS)) {
483-
/* connect to discoverable devices only */
484-
if (!(*value & GapAdvertisingData::LE_GENERAL_DISCOVERABLE)) {
485-
return;
486-
}
487478
} else if (type == GapAdvertisingData::COMPLETE_LOCAL_NAME) {
488479
/* connect based on the name of the device */
489480
if (memcmp((const char*)DEVICE_NAME, (const char*)value, record_length - 1) == 0) {

0 commit comments

Comments
 (0)