Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions windows/src/universal_ble_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ namespace universal_ble
{
bluetoothLEWatcher = BluetoothLEAdvertisementWatcher();
bluetoothLEWatcher.ScanningMode(BluetoothLEScanningMode::Active);
(void)bluetoothLEWatcher.AllowExtendedAdvertisements();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

It's good to see that the return value of AllowExtendedAdvertisements() is being ignored, as it might not always be necessary to handle it explicitly. However, consider adding a comment explaining why the return value is being ignored. This can help avoid confusion for future developers who might wonder if the return value should be checked for errors or other status information.

Suggested change
(void)bluetoothLEWatcher.AllowExtendedAdvertisements();
(void)bluetoothLEWatcher.AllowExtendedAdvertisements(); // Ignoring return value as it doesn't provide useful information in this context.

resetScanFilter();

if (filter != nullptr)
Expand Down
Loading