| 27 | } |
| 28 | |
| 29 | void State::updateScanResults() { |
| 30 | // Fetch outside the lock to avoid holding it during a service call. |
| 31 | auto results = bluetooth::getScanResults(); |
| 32 | auto lock = mutex.asScopedLock(); |
| 33 | lock.lock(); |
| 34 | scanResults = std::move(results); |
| 35 | } |
| 36 | |
| 37 | void State::updatePairedPeers() { |
| 38 | auto peers = bluetooth::getPairedPeers(); |
no test coverage detected