Skip to content

Commit 6e7edb2

Browse files
andrewchildsfpistm
authored andcommitted
Reset scan filters when stopScan is called [Fixes arduino-libraries#350]
1 parent b43b476 commit 6e7edb2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/utility/GAP.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,9 @@ int GAPClass::stopScan()
147147
}
148148
}
149149

150+
_scanNameFilter = "";
151+
_scanUuidFilter = "";
152+
_scanAddressFilter = "";
150153
_scanning = false;
151154

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

0 commit comments

Comments
 (0)