Hi. I fixed a issues with RTU devices. Using calloc instead of malloc makes shore that isConnected in MB_device is false on initialization.
Also moved the part that handles multiple RTU devices to initializeMB so that modbus_new_rtu is called only once for every port making shore that port settings and connections status is handled consistent.
Hi. I fixed a issues with RTU devices. Using calloc instead of malloc makes shore that isConnected in MB_device is false on initialization. Also moved the part that handles multiple RTU devices to initializeMB so that modbus_new_rtu is called only once for every port making shore that port settings and connections status is handled consistent.
Fixes thiagoralves/OpenPLC_v3#150