Project

General

Profile

Revision 2dde134c

ID2dde134ca53ca2a44f4bcdcd3f91ef32067ec2c9
Parent 9e26460d
Child e2a3c71f

Added by Thomas Mullins almost 9 years ago

Shorted modbus timeout

View differences:

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