Skip to content

Commit 8d9bf2a

Browse files
committed
SimpleBLE: dont prevent scanning in case of failed check for bluetooth enabled on win32
Signed-off-by: Andrey Parfenov <[email protected]>
1 parent cda4358 commit 8d9bf2a

File tree

1 file changed

+2
-0
lines changed
  • third_party/SimpleBLE/simpleble/src/frontends/base

1 file changed

+2
-0
lines changed

third_party/SimpleBLE/simpleble/src/frontends/base/Adapter.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,9 @@ void Adapter::scan_start() {
4444
if (!initialized()) throw Exception::NotInitialized();
4545
if (!bluetooth_enabled()) {
4646
SIMPLEBLE_LOG_WARN(fmt::format("Bluetooth is not enabled."));
47+
#if defined(_WIN32) && !defined(_WIN64)
4748
return;
49+
#endif
4850
}
4951
internal_->scan_start();
5052
}

0 commit comments

Comments
 (0)