From 4d99d22e10a3cb2a421da1618c127128816613c9 Mon Sep 17 00:00:00 2001 From: jacqueline Date: Tue, 26 Sep 2023 13:36:07 +1000 Subject: std::string -> std::pmr::string in psram --- src/drivers/include/bluetooth_types.hpp | 4 +++- src/drivers/include/fatfs_audio_input.hpp | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'src/drivers/include') diff --git a/src/drivers/include/bluetooth_types.hpp b/src/drivers/include/bluetooth_types.hpp index 12ed5cb3..7e26f0d7 100644 --- a/src/drivers/include/bluetooth_types.hpp +++ b/src/drivers/include/bluetooth_types.hpp @@ -4,6 +4,8 @@ #include #include +#include "memory_resource.hpp" + namespace drivers { namespace bluetooth { @@ -11,7 +13,7 @@ typedef std::array mac_addr_t; struct Device { mac_addr_t address; - std::string name; + std::pmr::string name; uint32_t class_of_device; int8_t signal_strength; }; diff --git a/src/drivers/include/fatfs_audio_input.hpp b/src/drivers/include/fatfs_audio_input.hpp index e1f62811..705f6e7d 100644 --- a/src/drivers/include/fatfs_audio_input.hpp +++ b/src/drivers/include/fatfs_audio_input.hpp @@ -39,7 +39,7 @@ class FatfsAudioInput { std::shared_ptr storage_; RingbufHandle_t output_; - std::string path_; + std::pmr::string path_; }; } // namespace drivers -- cgit v1.2.3