diff --git a/FreeModbus/modbus/functions/mbfuncdisc.c b/FreeModbus/modbus/functions/mbfuncdisc.c index 1dc10e5c1a30eba5ad31ee58ff236217dc6ef9cf..d8230259655cced17a6540bfe92d8e9e9eeb041d 100644 --- a/FreeModbus/modbus/functions/mbfuncdisc.c +++ b/FreeModbus/modbus/functions/mbfuncdisc.c @@ -51,7 +51,7 @@ eMBException prveMBError2Exception( eMBErrorCode eErrorCode ); /* ----------------------- Start implementation -----------------------------*/ -#if MB_FUNC_READ_COILS_ENABLED > 0 +#if MB_FUNC_READ_DISCRETE_INPUTS_ENABLED > 0 eMBException eMBFuncReadDiscreteInputs( UCHAR * pucFrame, USHORT * usLen )