apps/modbus/Kconfig: Fix modbus master Kconfig. Modbus Master ASCII compiles correctly
This commit is contained in:
parent
902c3fa552
commit
2973c48ca0
@ -150,21 +150,20 @@ config MODBUS_MASTER
|
|||||||
bool "Modbus Master support via FreeModBus"
|
bool "Modbus Master support via FreeModBus"
|
||||||
default n
|
default n
|
||||||
|
|
||||||
if MODBUS_MASTER
|
|
||||||
|
|
||||||
if 0
|
|
||||||
config MB_ASCII_MASTER
|
config MB_ASCII_MASTER
|
||||||
bool "Modbus ASCII master"
|
bool "Modbus ASCII master"
|
||||||
default n
|
default n
|
||||||
endif
|
depends on MODBUS_MASTER
|
||||||
|
|
||||||
config MB_RTU_MASTER
|
config MB_RTU_MASTER
|
||||||
bool "Modbus RTU master"
|
bool "Modbus RTU master"
|
||||||
default n
|
default n
|
||||||
|
depends on MODBUS_MASTER
|
||||||
|
|
||||||
config MB_PORT_HAS_CLOSE
|
config MB_PORT_HAS_CLOSE
|
||||||
bool "Platform close callbacks"
|
bool "Platform close callbacks"
|
||||||
default n
|
default n
|
||||||
|
depends on MODBUS_MASTER
|
||||||
---help---
|
---help---
|
||||||
A port which wants to get an callback must select
|
A port which wants to get an callback must select
|
||||||
CONFIG_MB_HAS_CLOSE and provide vMBMasterPortClose() as
|
CONFIG_MB_HAS_CLOSE and provide vMBMasterPortClose() as
|
||||||
@ -251,6 +250,5 @@ config MB_MASTER_FUNC_READWRITE_HOLDING_ENABLED
|
|||||||
If the Read/Write Multiple Registers function should be enabled.
|
If the Read/Write Multiple Registers function should be enabled.
|
||||||
|
|
||||||
endif # MB_ASCII_MASTER || MB_RTU_MASTER
|
endif # MB_ASCII_MASTER || MB_RTU_MASTER
|
||||||
endif # MODBUS_MASTER
|
|
||||||
endif # MODBUS
|
endif # MODBUS
|
||||||
endmenu # FreeModBus
|
endmenu # FreeModBus
|
||||||
|
Loading…
Reference in New Issue
Block a user