Renamed NVS namespace

This commit is contained in:
Dreaded_X 2023-04-01 04:12:13 +02:00
parent 987f778a25
commit 8505ac6049
Signed by: Dreaded_X
GPG Key ID: FA5F485356B0D2D4

View File

@ -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");
}