forked from espressif/esp-modbus
Bugfix/modbus rtu skips first packet t35meas is disabled
This commit is contained in:
1 parent
0f67f0bb82
commit
a64720b677
1 file changed
+5
-2
@@ -137,8 +137,11 @@ eMBRTUStart( void )
|
||||
*/
|
||||
eRcvState = STATE_RX_INIT;
|
||||
vMBPortSerialEnable( TRUE, FALSE );
|
||||
vMBPortTimersEnable( );
|
||||
|
||||
#if CONFIG_FMB_TIMER_PORT_ENABLED
|
||||
vMBPortTimersEnable( );
|
||||
#else
|
||||
pxMBPortCBTimerExpired();
|
||||
#endif
|
||||
EXIT_CRITICAL_SECTION( );
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user