From 5fe3593a6dbb7dfa991b519da50e191cf208accd 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:28:07 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E4=BF=AE=E5=A4=8D=E3=80=91=E4=BB=8E?= =?UTF-8?q?=E6=9C=BA=E7=A6=BB=E6=95=A3=E8=BE=93=E5=85=A5=E7=9B=B8=E5=85=B3?= =?UTF-8?q?=E5=8A=9F=E8=83=BD=E6=96=87=E4=BB=B6=E4=B8=AD=EF=BC=8C=E5=AE=8F?= =?UTF-8?q?=E9=94=99=E8=AF=AF?= 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 ) -- Gitee