Skip to content
Commit 3ca82093 authored by Luke Peterson's avatar Luke Peterson
Browse files

Add libmodbus version checks

libmodbus version 3.1.2 introduced backwards incompatible API changes in
modbus_set_response_timeout and modbus_set_byte_timeout functions. This
patch adds conditional compilation to use the API appropriately based
upon the result of the LIBMODBUS_VERSION_CHECK macro.

Issue: https://github.com/LinuxCNC/linuxcnc/issues/105


Signed-off-by: default avatarDale Lukas Peterson <hazelnusse@gmail.com>
parent 13c3328d
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment