mirror of
https://github.com/apache/nuttx-apps.git
synced 2025-10-17 15:32:21 +08:00
Fix modbus compile error if CONFIG_MB_FUNC_READ_DISCRETE_INPUTS_ENABLED is enabled
This commit is contained in:

committed by
Gregory Nutt

parent
95ea63cd10
commit
21a33d9b7a
@@ -62,7 +62,7 @@ eMBException prveMBError2Exception(eMBErrorCode eErrorCode);
|
||||
* Public Functions
|
||||
****************************************************************************/
|
||||
|
||||
#ifdef CONFIG_MB_FUNC_READ_COILS_ENABLED
|
||||
#ifdef CONFIG_MB_FUNC_READ_DISCRETE_INPUTS_ENABLED
|
||||
eMBException eMBFuncReadDiscreteInputs(uint8_t *pucFrame, uint16_t *usLen)
|
||||
{
|
||||
uint16_t usRegAddress;
|
||||
|
Reference in New Issue
Block a user