mirror of
https://github.com/espressif/esp-modbus.git
synced 2026-08-03 20:24:09 +02:00
fix modbus slave wait before send option
This commit is contained in:
@@ -121,8 +121,10 @@ PR_BEGIN_EXTERN_C
|
||||
* transmitting the frame. If the master is to slow with enabling its
|
||||
* receiver then he will not receive the response correctly.
|
||||
*/
|
||||
#ifndef MB_ASCII_TIMEOUT_WAIT_BEFORE_SEND_MS
|
||||
#ifndef CONFIG_FMB_ASCII_TIMEOUT_WAIT_BEFORE_SEND_MS
|
||||
#define MB_ASCII_TIMEOUT_WAIT_BEFORE_SEND_MS ( 0 )
|
||||
#else
|
||||
#define MB_ASCII_TIMEOUT_WAIT_BEFORE_SEND_MS ( CONFIG_FMB_ASCII_TIMEOUT_WAIT_BEFORE_SEND_MS )
|
||||
#endif
|
||||
|
||||
/*! \brief Maximum number of Modbus functions codes the protocol stack
|
||||
|
||||
@@ -125,3 +125,8 @@ void vMBPortTimerClose(void)
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
void vMBPortTimersDelay(USHORT usTimeOutMS)
|
||||
{
|
||||
vTaskDelay(usTimeOutMS / portTICK_PERIOD_MS);
|
||||
}
|
||||
Reference in New Issue
Block a user