mirror of
https://github.com/espressif/esp-modbus.git
synced 2025-08-01 03:14:29 +02:00
Bugfix/modbus rtu skips first packet t35meas is disabled
This commit is contained in:
@@ -137,8 +137,11 @@ eMBRTUStart( void )
|
|||||||
*/
|
*/
|
||||||
eRcvState = STATE_RX_INIT;
|
eRcvState = STATE_RX_INIT;
|
||||||
vMBPortSerialEnable( TRUE, FALSE );
|
vMBPortSerialEnable( TRUE, FALSE );
|
||||||
|
#if CONFIG_FMB_TIMER_PORT_ENABLED
|
||||||
vMBPortTimersEnable( );
|
vMBPortTimersEnable( );
|
||||||
|
#else
|
||||||
|
pxMBPortCBTimerExpired();
|
||||||
|
#endif
|
||||||
EXIT_CRITICAL_SECTION( );
|
EXIT_CRITICAL_SECTION( );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user