1
MODBUS / conflicted define in modbus.c
« on: June 01, 2017, 08:45:49 AM »
Dear Mark @mark,
The AUTO_RS485_RTS_SUPPORT define was conflicted.
in line 910# of modbus.c
#if !defined AUTO_RS485_RTS_SUPPORT && (!defined _LPC23XX && !defined _LPC17XX) // {V1.19}
fnConfigRTS_delay(ucMODBUSport, &tInterfaceParameters);
#endif
the function "fnConfigRTS_delay" was invoked when AUTO_RS485_RTS_SUPPORT undefined.
But in line 358# 1687# the function was declared and implemented when the "AUTO_RS485_RTS_SUPPORT " was defined.
line 358#
#if defined MODBUS_RS485_RTS_SUPPORT
static void fnConfigRTS_delay(unsigned char ucMODBUSport, TTYTABLE *InterfaceParameters);
#endif
The AUTO_RS485_RTS_SUPPORT define was conflicted.
in line 910# of modbus.c
#if !defined AUTO_RS485_RTS_SUPPORT && (!defined _LPC23XX && !defined _LPC17XX) // {V1.19}
fnConfigRTS_delay(ucMODBUSport, &tInterfaceParameters);
#endif
the function "fnConfigRTS_delay" was invoked when AUTO_RS485_RTS_SUPPORT undefined.
But in line 358# 1687# the function was declared and implemented when the "AUTO_RS485_RTS_SUPPORT " was defined.
line 358#
#if defined MODBUS_RS485_RTS_SUPPORT
static void fnConfigRTS_delay(unsigned char ucMODBUSport, TTYTABLE *InterfaceParameters);
#endif