summaryrefslogtreecommitdiff
path: root/src/drivers/bluetooth.cpp
diff options
context:
space:
mode:
authorjacqueline <me@jacqueline.id.au>2024-08-13 13:02:07 +1000
committercooljqln <cooljqln@noreply.codeberg.org>2024-08-13 06:02:54 +0000
commit6a2d259f46ac5ae9ede5733fb06cf93ca01fe162 (patch)
treecac47a438842dcb269988223f4afae108d1d1549 /src/drivers/bluetooth.cpp
parent822c9dc93e868254059598ddeb58713135f0a4a1 (diff)
downloadtangara-fw-6a2d259f46ac5ae9ede5733fb06cf93ca01fe162.tar.gz
Move off of deprecated APIs
Diffstat (limited to 'src/drivers/bluetooth.cpp')
-rw-r--r--src/drivers/bluetooth.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drivers/bluetooth.cpp b/src/drivers/bluetooth.cpp
index a0a318e9..8ec30395 100644
--- a/src/drivers/bluetooth.cpp
+++ b/src/drivers/bluetooth.cpp
@@ -528,7 +528,7 @@ void Disabled::react(const events::Enable&) {
// Set a reasonable name for the device.
std::pmr::string name = DeviceName();
- esp_bt_dev_set_device_name(name.c_str());
+ esp_bt_gap_set_device_name(name.c_str());
// Initialise GAP. This controls advertising our device, and scanning for
// other devices.