From a0b9fcc3812439cddaf669c94cd7092b7b3a2cef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E7=A7=8B=E6=9E=97?= <1960439967@qq.com> Date: Thu, 30 Apr 2020 12:38:40 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E4=BF=AE=E5=A4=8D=E3=80=91FreeModbus?= =?UTF-8?q?=E4=BB=8E=E6=9C=BA=E8=AF=BB=E7=A6=BB=E6=95=A3=E8=BE=93=E5=85=A5?= =?UTF-8?q?=E4=B8=80=E5=A4=84=E5=AE=8F=E9=94=99=E8=AF=AF=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- FreeModbus/modbus/functions/mbfuncdisc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FreeModbus/modbus/functions/mbfuncdisc.c b/FreeModbus/modbus/functions/mbfuncdisc.c index 1dc10e5..d823025 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 )