在user_mb_app_m.c的eMBMasterRegHoldingCB函数中直接将eMode赋值为MB_REG_WRITE了,然后
在mbfuncholding_m.c的eMBMasterFuncReadHoldingRegister函数中,使用MB_REG_READ 模式调用eMBMasterRegHoldingCB函数。
这种方式导致使得eMBMasterRegHoldingCB的eMode参数失去了意义,
感觉将eMBMasterRegHoldingCB中的eMode = MB_REG_WRITE;代码去掉,然后
eMBMasterFuncReadHoldingRegister函数中使用MB_REG_WRITE作为参数调用eMBMasterRegHoldingCB函数,这样从操作是否更合理一点?
同样的问题也存在线圈操作相关的接口。