mirror of
https://github.com/BotChain-Robots/firmware.git
synced 2026-07-08 17:47:21 +02:00
Integration with RMT
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
idf_component_register(SRCS "ConfigManager.cpp"
|
||||
PRIV_REQUIRES constants nvs_flash
|
||||
INCLUDE_DIRS "include")
|
||||
PRIV_REQUIRES constants nvs_flash
|
||||
REQUIRES flatbuffers
|
||||
INCLUDE_DIRS "include")
|
||||
|
||||
@@ -26,6 +26,7 @@ void ConfigManager::init_config() {
|
||||
nvs_close(config_handle);
|
||||
}
|
||||
|
||||
// todo: we should probably cache some of these things
|
||||
uint16_t ConfigManager::get_module_id() {
|
||||
nvs_handle config_handle;
|
||||
nvs_open(NVS_FLASH_NAMESPACE, NVS_READONLY, &config_handle);
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
#define CONFIGMANAGER_H
|
||||
|
||||
#include "constants/config.h"
|
||||
#include "flatbuffers_generated/RobotModule_generated.h"
|
||||
|
||||
class ConfigManager {
|
||||
public:
|
||||
|
||||
Reference in New Issue
Block a user