From 6a2d259f46ac5ae9ede5733fb06cf93ca01fe162 Mon Sep 17 00:00:00 2001 From: jacqueline Date: Tue, 13 Aug 2024 13:02:07 +1000 Subject: Move off of deprecated APIs --- src/drivers/bluetooth.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/drivers/bluetooth.cpp') 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. -- cgit v1.2.3