refactor(nvs): custom allocator for all objects allocated in NVS
This commit is contained in:
@@ -13,6 +13,7 @@
|
||||
#include "esp_partition.h"
|
||||
#include <functional>
|
||||
#include "nvs_handle_simple.hpp"
|
||||
#include "nvs_memory_management.hpp"
|
||||
#include "esp_err.h"
|
||||
#include <esp_rom_crc.h>
|
||||
#include "nvs_internal.h"
|
||||
@@ -22,7 +23,7 @@
|
||||
#include "esp_log.h"
|
||||
static const char* TAG = "nvs";
|
||||
|
||||
class NVSHandleEntry : public intrusive_list_node<NVSHandleEntry> {
|
||||
class NVSHandleEntry : public intrusive_list_node<NVSHandleEntry>, public ExceptionlessAllocatable {
|
||||
public:
|
||||
NVSHandleEntry(nvs::NVSHandleSimple *handle, const char* part_name)
|
||||
: nvs_handle(handle),
|
||||
|
||||
Reference in New Issue
Block a user