1、【还原】之前一版接收完成后处理逻辑代码,上版本的优化方案经过测试,485总线效果不好,等优化成功后再更新。
Signed-off-by: armink <armink.ztl@gmail.com>
This commit is contained in:
parent
c3325ad15e
commit
c4a9632836
|
@ -330,10 +330,9 @@ xMBRTUTimerT35Expired( void )
|
|||
xNeedPoll = xMBPortEventPost( EV_READY );
|
||||
break;
|
||||
|
||||
/* A frame was received and t35 expired. Close serial receive and notify the listener that
|
||||
/* A frame was received and t35 expired. Notify the listener that
|
||||
* a new frame was received. */
|
||||
case STATE_RX_RCV:
|
||||
vMBPortSerialEnable( FALSE, FALSE );
|
||||
xNeedPoll = xMBPortEventPost( EV_FRAME_RECEIVED );
|
||||
break;
|
||||
|
||||
|
|
|
@ -356,10 +356,9 @@ xMBMasterRTUTimerExpired(void)
|
|||
xNeedPoll = xMBMasterPortEventPost(EV_MASTER_READY);
|
||||
break;
|
||||
|
||||
/* A frame was received and t35 expired. Close serial receive and notify the listener that
|
||||
/* A frame was received and t35 expired. Notify the listener that
|
||||
* a new frame was received. */
|
||||
case STATE_M_RX_RCV:
|
||||
vMBMasterPortSerialEnable( FALSE, FALSE );
|
||||
xNeedPoll = xMBMasterPortEventPost(EV_MASTER_FRAME_RECEIVED);
|
||||
break;
|
||||
|
||||
|
|
Loading…
Reference in New Issue