From 4a2096f49fa6066f211971344afadbf61559afa4 Mon Sep 17 00:00:00 2001 From: Andrew Childs Date: Sun, 4 Feb 2024 21:03:55 -0500 Subject: [PATCH] Reset scan filters when stopScan is called [Fixes #350] --- src/utility/GAP.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/utility/GAP.cpp b/src/utility/GAP.cpp index f1bf02fe..d84b660f 100644 --- a/src/utility/GAP.cpp +++ b/src/utility/GAP.cpp @@ -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++) {