~aleteoryx/muditaos

d1fe9bc520ea153c405c2a7666b707579984112c — SP2FET 4 years ago 64b89cc
[EGD-5977] Fix empty BT devices list after pairing

After changing flow of settings windows, the stopScan command
is being executed right after executing pairing, so cleaning the
scan devices list is being done on scan start
1 files changed, 1 insertions(+), 1 deletions(-)

M module-bluetooth/Bluetooth/interface/profiles/GAP/GAP.cpp
M module-bluetooth/Bluetooth/interface/profiles/GAP/GAP.cpp => module-bluetooth/Bluetooth/interface/profiles/GAP/GAP.cpp +1 -1
@@ 46,7 46,6 @@ namespace bluetooth
    void GAP::stopScan()
    {
        gap_inquiry_stop();
        devices.clear();
        LOG_INFO("Scan stopped!");
    }



@@ 87,6 86,7 @@ namespace bluetooth
    auto GAP::startScan() -> int
    {
        LOG_INFO("Starting inquiry scan..");
        devices.clear();
        return gap_inquiry_start(inquiryIntervalSeconds);
    }