From 8505ac60498cded8b9cb9e0c7d5b7357c597ae3d Mon Sep 17 00:00:00 2001 From: Dreaded_X Date: Sat, 1 Apr 2023 04:12:13 +0200 Subject: [PATCH] Renamed NVS namespace --- software/main/src/storage.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/software/main/src/storage.cpp b/software/main/src/storage.cpp index e131c0a..8ba070d 100644 --- a/software/main/src/storage.cpp +++ b/software/main/src/storage.cpp @@ -20,7 +20,7 @@ void nvs::init() { void nvs::get_last_connection(esp_bd_addr_t last_connection) { nvs_handle handle; - esp_err_t err = nvs_open("connected_dba", NVS_READWRITE, &handle); + esp_err_t err = nvs_open("stereo", NVS_READONLY, &handle); if (err != ESP_OK) { ESP_LOGE(NVS_TAG, "NVS OPEN ERRRO"); } @@ -52,7 +52,7 @@ void nvs::set_last_connection(esp_bd_addr_t bda) { } nvs_handle handle; - esp_err_t err = nvs_open("connected_dba", NVS_READWRITE, &handle); + esp_err_t err = nvs_open("stereo", NVS_READWRITE, &handle); if (err != ESP_OK) { ESP_LOGE(NVS_TAG, "NVS OPEN ERRRO"); }