mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2025-12-09 13:07:03 +03:00
enhancement: new "config" module to access configuration in RAM
This is to allow moving some tasks/stack memory to SPIRAM, saving on precious IRAM. HTTP server should also be more responsive.
This commit is contained in:
@@ -91,7 +91,7 @@ static nvs_type_t str_to_type(const char *type)
|
||||
|
||||
return NVS_TYPE_ANY;
|
||||
}
|
||||
static const char *type_to_str(nvs_type_t type)
|
||||
const char *type_to_str(nvs_type_t type)
|
||||
{
|
||||
for (int i = 0; i < TYPE_STR_PAIR_SIZE; i++) {
|
||||
const type_str_pair_t *p = &type_str_pair[i];
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
CONDITIONS OF ANY KIND, either express or implied.
|
||||
*/
|
||||
#pragma once
|
||||
#include "nvs_flash.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
@@ -14,7 +15,7 @@ extern "C" {
|
||||
|
||||
// Register NVS functions
|
||||
void register_nvs();
|
||||
|
||||
const char *type_to_str(nvs_type_t type);
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user