From: James Churchill Date: Sun, 18 Feb 2018 06:29:01 +0000 (+1000) Subject: modbus: Increase modbus reply timeout to 500ms. X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=d4e070177109148b9b6ab512611ad88f100506e2;p=libsigrok.git modbus: Increase modbus reply timeout to 500ms. Needed by rdtech-dps driver, 100ms is too short. --- diff --git a/src/modbus/modbus_serial_rtu.c b/src/modbus/modbus_serial_rtu.c index ae76e7cf..4b15d241 100644 --- a/src/modbus/modbus_serial_rtu.c +++ b/src/modbus/modbus_serial_rtu.c @@ -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;