1、【修改】在接收数据长度超过MB_SER_PDU_SIZE_MAX即PDU最大长度后,错误未被处理的Bug。
Signed-off-by: armink <armink.ztl@gmail.com>
This commit is contained in:
parent
9c33ea1b1e
commit
54460c7180
|
@ -28,7 +28,7 @@
|
|||
#define DELAY_MS(X) (X*DELAY_1MS)
|
||||
#define DELAY_S(X) (X*1000*DELAY_1MS)
|
||||
|
||||
#elif (RT_TICK_PER_SECOND == 10000)||(RT_TICK_PER_SECOND == 100000)||(RT_TICK_PER_SECOND == 100000)
|
||||
#elif (RT_TICK_PER_SECOND == 10000)
|
||||
#define DELAY_100US(X) (X*RT_TICK_PER_SECOND/10000)
|
||||
#define DELAY_1MS (RT_TICK_PER_SECOND/1000)
|
||||
#define DELAY_MS(X) (X*DELAY_1MS)
|
||||
|
|
|
@ -364,6 +364,8 @@ xMBMasterRTUTimerExpired(void)
|
|||
|
||||
/* An error occured while receiving the frame. */
|
||||
case STATE_M_RX_ERROR:
|
||||
vMBMasterSetErrorType(EV_ERROR_RECEIVE_DATA);
|
||||
xNeedPoll = xMBMasterPortEventPost( EV_MASTER_ERROR_PROCESS );
|
||||
break;
|
||||
|
||||
/* Function called in an illegal state. */
|
||||
|
|
Loading…
Reference in New Issue