From 8d9bf2a3affa7ac0d1ddc1c7f6cb759565c6973a Mon Sep 17 00:00:00 2001 From: Andrey Parfenov Date: Wed, 8 Oct 2025 00:03:36 +0200 Subject: [PATCH] SimpleBLE: dont prevent scanning in case of failed check for bluetooth enabled on win32 Signed-off-by: Andrey Parfenov --- third_party/SimpleBLE/simpleble/src/frontends/base/Adapter.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/third_party/SimpleBLE/simpleble/src/frontends/base/Adapter.cpp b/third_party/SimpleBLE/simpleble/src/frontends/base/Adapter.cpp index 2983bf9b4..4fd5d3cdd 100644 --- a/third_party/SimpleBLE/simpleble/src/frontends/base/Adapter.cpp +++ b/third_party/SimpleBLE/simpleble/src/frontends/base/Adapter.cpp @@ -44,7 +44,9 @@ void Adapter::scan_start() { if (!initialized()) throw Exception::NotInitialized(); if (!bluetooth_enabled()) { SIMPLEBLE_LOG_WARN(fmt::format("Bluetooth is not enabled.")); +#if defined(_WIN32) && !defined(_WIN64) return; +#endif } internal_->scan_start(); }