Modbus

89333b3746d9
Parents 09d05187345d
Children b9f302d97b18
use writev() in RTU layer -> extra bytes no longer needed
  • +1 -1
    mb_rtu.c
  • --- a/mb_rtu.c Sun Oct 16 19:21:38 2022 +0100
    +++ b/mb_rtu.c Sun Oct 16 19:40:53 2022 +0100
    @@ -1997,7 +1997,7 @@
    * The number of extra bytes that must be allocated to the data buffer
    * before calling modbus_rtu_write()
    */
    - *extra_bytes = RTU_FRAME_CRC_LENGTH;
    + *extra_bytes = 0;
    /* initialise nd table... */
    if (nd_table_init(&nd_table_, nd_count) < 0)