diff options
| author | jacqueline <me@jacqueline.id.au> | 2023-09-26 13:36:07 +1000 |
|---|---|---|
| committer | jacqueline <me@jacqueline.id.au> | 2023-09-26 13:36:07 +1000 |
| commit | 4d99d22e10a3cb2a421da1618c127128816613c9 (patch) | |
| tree | 527490a466348e5cf40cf10a8f3768aa5be4e7c1 /src/drivers/storage.cpp | |
| parent | f6d06421090f88094aba76b72b04d614f54efafa (diff) | |
| download | tangara-fw-4d99d22e10a3cb2a421da1618c127128816613c9.tar.gz | |
std::string -> std::pmr::string in psram
Diffstat (limited to 'src/drivers/storage.cpp')
| -rw-r--r-- | src/drivers/storage.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/drivers/storage.cpp b/src/drivers/storage.cpp index 6acb6870..0492b5dc 100644 --- a/src/drivers/storage.cpp +++ b/src/drivers/storage.cpp @@ -24,6 +24,7 @@ #include "sdmmc_cmd.h" #include "gpios.hpp" +#include "memory_resource.hpp" static const char* kTag = "SDSTORAGE"; static const uint8_t kMaxOpenFiles = 8; @@ -74,7 +75,7 @@ auto SdStorage::Create(IGpios& gpio) -> cpp::result<SdStorage*, Error> { // Mount right now, not on first operation. FRESULT ferr = f_mount(fs, "", 1); if (ferr != FR_OK) { - std::string err_str; + std::pmr::string err_str; switch (ferr) { case FR_DISK_ERR: err_str = "FR_DISK_ERR"; |
