diff options
| author | Joel Klinghed <the_jk@spawned.biz> | 2025-10-20 09:07:14 +0200 |
|---|---|---|
| committer | Joel Klinghed <the_jk@spawned.biz> | 2025-10-20 09:15:50 +0200 |
| commit | 100ca4f3cd27b98a3ffd9bbc51ff2d3433a0d69c (patch) | |
| tree | f5d7ec0d67a5230b52e45a0cf7eb0d0364f079af /src/main.cc | |
| parent | 5c28de350264afbc7747c9b78cae4ac498a1211a (diff) | |
bt: Fix adapter methods
Took a while to figure out how to return an empty value for these
methods. Combination of withNoReply() and our own Void instance
did it.
Diffstat (limited to 'src/main.cc')
| -rw-r--r-- | src/main.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main.cc b/src/main.cc index 4555473..b98d06a 100644 --- a/src/main.cc +++ b/src/main.cc @@ -237,7 +237,8 @@ class BluetoothManagerDelegate : public bt::Manager::Delegate, public Api { std::function<void(bool)> callback) override { logger_.info(std::format("Device request confirmation: {} {}", device.name(), passkey)); - callback(false); + // Confirm all + callback(true); } void agent_request_authorization( |
