]> sigrok.org Git - libsigrok.git/commit
modbus: Return explicit SR_ERR values as required by modbus.c
authorJames Churchill <redacted>
Sun, 18 Feb 2018 06:54:01 +0000 (16:54 +1000)
committerJames Churchill <redacted>
Mon, 26 Mar 2018 05:41:01 +0000 (15:41 +1000)
commit7b50a9b86987845bc596bfa226c69313afab6b8b
treee80717eb2f0518839872edfd51f375cb85d299d9
parentd4e070177109148b9b6ab512611ad88f100506e2
modbus: Return explicit SR_ERR values as required by modbus.c

The Modbus RTU implementation was inappropriately returning lengths
from the serial functions when the calling functions expect only an
sr_error_code value.
src/modbus/modbus_serial_rtu.c