Configure ThingSet pub messages via Kconfig and enable by default
This commit is contained in:
+2
-2
@@ -48,10 +48,10 @@ static char auth_password[11];
|
||||
#define solar_bus lv_bus
|
||||
#endif
|
||||
|
||||
bool pub_serial_enable = false;
|
||||
bool pub_serial_enable = IS_ENABLED(CONFIG_THINGSET_SERIAL_PUB_DEFAULT);
|
||||
|
||||
#if CONFIG_THINGSET_CAN
|
||||
bool pub_can_enable = false;
|
||||
bool pub_can_enable = IS_ENABLED(CONFIG_THINGSET_CAN_PUB_DEFAULT);
|
||||
uint16_t can_node_addr = CONFIG_THINGSET_CAN_DEFAULT_NODE_ID;
|
||||
#endif
|
||||
|
||||
|
||||
@@ -351,10 +351,20 @@ config THINGSET_SERIAL_TX_BUF_SIZE
|
||||
range 256 2048
|
||||
default 1024
|
||||
|
||||
config THINGSET_SERIAL_PUB_DEFAULT
|
||||
bool "Enable serial publication messages at startup"
|
||||
depends on THINGSET_SERIAL
|
||||
default y
|
||||
|
||||
config THINGSET_CAN
|
||||
depends on CAN
|
||||
bool "ThingSet CAN interface"
|
||||
|
||||
config THINGSET_CAN_PUB_DEFAULT
|
||||
bool "Enable CAN publication messages at startup"
|
||||
depends on THINGSET_CAN
|
||||
default y
|
||||
|
||||
config THINGSET_CAN_DEFAULT_NODE_ID
|
||||
depends on THINGSET_CAN
|
||||
int "ThingSet CAN default node ID"
|
||||
|
||||
Reference in New Issue
Block a user