[EGD-5986] Fix re-enabling BT scan Due to incorrect stopping the BT scan, re-enabling it caused failure to HCI state machine, which was indirect cause of failing connections. Now it works
3 files changed, 6 insertions(+), 2 deletions(-) M module-apps/application-settings-new/windows/AllDevicesWindow.cpp M module-bluetooth/Bluetooth/CommandHandler.cpp M module-bluetooth/lib/btstack
M module-apps/application-settings-new/windows/AllDevicesWindow.cpp => module-apps/application-settings-new/windows/AllDevicesWindow.cpp +4 -1
@@ 38,8 38,11 @@ namespace gui "cross"); } void AllDevicesWindow::onBeforeShow(ShowMode /*mode*/, SwitchData *data) void AllDevicesWindow::onBeforeShow(ShowMode mode, SwitchData *data) { if (mode == ShowMode::GUI_SHOW_RETURN) { bluetoothSettingsModel->stopScan(); } const auto newData = dynamic_cast<BondedDevicesData *>(data); if (newData != nullptr) { devices = newData->getDevices();
M module-bluetooth/Bluetooth/CommandHandler.cpp => module-bluetooth/Bluetooth/CommandHandler.cpp +1 -0
@@ 90,6 90,7 @@ namespace bluetooth Error::Code CommandHandler::stopScan() { LOG_INFO("Stopping scan!"); driver->stopScan(); static_cast<ServiceBluetooth *>(service)->scanStoppedCallback(); return Error::Success;
M module-bluetooth/lib/btstack => module-bluetooth/lib/btstack +1 -1