Check slave only in RTU backend and add unit tests
commit1941fd4aa96007b69b4c119bd39491d39ef2373e
authorStéphane Raimbault <stephane.raimbault@gmail.com>
Tue, 25 Oct 2011 07:38:58 +0000 (25 09:38 +0200)
committerStéphane Raimbault <stephane.raimbault@gmail.com>
Mon, 31 Oct 2011 15:49:17 +0000 (31 16:49 +0100)
treee451be2e0731be9da640dd455a686292530b83c7
parent6bad349481ab5df2b8adb3a582b353634b794eb9
Check slave only in RTU backend and add unit tests

- new function _modbus_rtu_pre_check_confirmation
- new special test value to trigger an invalid response
- add unit test to cover invalid TID too
src/modbus-rtu.c
src/modbus.c
tests/unit-test-client.c
tests/unit-test-server.c
tests/unit-test.h.in