Configure custom data nodes

This commit is contained in:
azeemshatp
2020-05-26 15:02:26 +02:00
committed by Martin Jäger
parent 81aefff168
commit cfed3ed6e9
3 changed files with 8 additions and 1 deletions
+5
View File
@@ -29,6 +29,11 @@ config LIBRE_SOLAR_TYPE_ID
help
Numeric Libre Solar hardware type ID
config CUSTOM_DATA_NODES_FILE
bool
default n
help
Use the custom made data_nodes file
#
# Visible (user-configurable) Kconfig symbols
+1 -1
View File
@@ -22,7 +22,7 @@
// can be used to configure custom data objects in separate file instead
// (e.g. data_nodes_custom.cpp)
#ifndef CUSTOM_DATA_NODES_FILE
#ifndef CONFIG_CUSTOM_DATA_NODES_FILE
#include "thingset.h"
#include "hardware.h"
+2
View File
@@ -12,6 +12,8 @@ add_definitions(-D__ZEPHYR__ -DDEBUG_PRINT_FLAGS=7)
include_directories(../src)
target_sources_if_kconfig(CONFIG_CUSTOM_DATA_NODES_FILE, app PRIVATE ../src/data_nodes_custom.cpp)
target_sources(app PRIVATE
../src/bat_charger.cpp
../src/data_nodes.cpp