summaryrefslogtreecommitdiff
path: root/src/drivers/nvs.cpp
diff options
context:
space:
mode:
authorjacqueline <me@jacqueline.id.au>2024-07-12 14:40:54 +1000
committerjacqueline <me@jacqueline.id.au>2024-07-12 14:40:54 +1000
commitf78de39a750d58bfe883a789aa6cc4b0a5d9b9e7 (patch)
treebd7c20afd43745a0648aa36b83f8414f0fe5ba42 /src/drivers/nvs.cpp
parenta3eb2dd9dc2399ce9c22cd3b07f482f080976440 (diff)
downloadtangara-fw-f78de39a750d58bfe883a789aa6cc4b0a5d9b9e7.tar.gz
Give Bluetooth settings a bit of a refresh
It's now a bit more responsive to stuff happening, gives you more information, and remembers your previously paired devices for faster switching between them.
Diffstat (limited to 'src/drivers/nvs.cpp')
-rw-r--r--src/drivers/nvs.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drivers/nvs.cpp b/src/drivers/nvs.cpp
index c4d8dedc..e3c4aa06 100644
--- a/src/drivers/nvs.cpp
+++ b/src/drivers/nvs.cpp
@@ -391,7 +391,7 @@ auto NvsStorage::BluetoothNames() -> std::vector<bluetooth::MacAndName> {
auto NvsStorage::BluetoothName(const bluetooth::mac_addr_t& mac,
std::optional<std::string> name) -> void {
std::lock_guard<std::mutex> lock{mutex_};
- auto& val = bt_names_.get();
+ auto val = bt_names_.get();
if (!val) {
val.emplace();
}