modbus: Increase modbus reply timeout to 500ms.
Needed by rdtech-dps driver, 100ms is too short.
This commit is contained in:
parent
366ccb8ab7
commit
d4e0701771
|
@ -133,7 +133,7 @@ static int modbus_serial_rtu_read_begin(void *priv, uint8_t *function_code)
|
|||
uint8_t slave_addr;
|
||||
int ret;
|
||||
|
||||
ret = serial_read_blocking(modbus->serial, &slave_addr, 1, 100);
|
||||
ret = serial_read_blocking(modbus->serial, &slave_addr, 1, 500);
|
||||
if (ret != 1 || slave_addr != modbus->slave_addr)
|
||||
return ret;
|
||||
|
||||
|
|
Loading…
Reference in New Issue