Skip to content

Commit

Permalink
Reset scan filters when stopScan is called [Fixes arduino-libraries#350]
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewchilds committed Feb 5, 2024
1 parent dff9e41 commit 4a2096f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/utility/GAP.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,9 @@ void GAPClass::stopScan()
{
HCI.leSetScanEnable(false, false);

_scanNameFilter = "";
_scanUuidFilter = "";
_scanAddressFilter = "";
_scanning = false;

for (unsigned int i = 0; i < _discoveredDevices.size(); i++) {
Expand Down

0 comments on commit 4a2096f

Please sign in to comment.