Revision 2dde134c
Shorted modbus timeout
mainbox/tool.c | ||
---|---|---|
24 | 24 |
return 1; |
25 | 25 |
} |
26 | 26 |
|
27 |
timeout.tv_sec = 0; |
|
28 |
timeout.tv_usec = MB_TIMEOUT_MS * 1000; |
|
29 |
modbus_set_response_timeout(ctx, &timeout); |
|
30 |
|
|
27 | 31 |
modbus_get_response_timeout(ctx, &timeout); |
28 | 32 |
log_print("Modbus response timeout is %lus %luus", |
29 | 33 |
timeout.tv_sec, timeout.tv_usec); |
Also available in: Unified diff