mirror of
https://github.com/BotChain-Robots/firmware.git
synced 2026-07-08 17:47:21 +02:00
add some classes for movement set handling
This commit is contained in:
18
components/movements/TopologyManager.cpp
Normal file
18
components/movements/TopologyManager.cpp
Normal file
@@ -0,0 +1,18 @@
|
||||
#include "TopologyBlobs.h"
|
||||
#include "esp_log.h"
|
||||
#ifdef MOVEMENTS
|
||||
|
||||
TopologyManager::TopologyManager(){
|
||||
esp_err_t res = nvs_open(MOVEMENTS_NVS_NAMESPACE, NVS_READWRITE, &handle);
|
||||
|
||||
if (res != ESP_OK){
|
||||
ESP_LOGE(MOVEMENTS_DEBUG_TAG, "Failed to open nvs for %s", MOVEMENTS_NVS_NAMESPACE);
|
||||
return;
|
||||
}
|
||||
};
|
||||
|
||||
TopologyManager::~TopologyManager(){
|
||||
nvs_close(handle);
|
||||
}
|
||||
|
||||
#endif //MOVEMENTS
|
||||
Reference in New Issue
Block a user