modbuspp
modbuspp copied to clipboard
the problem with 'to_send'
visual studio says that " Using uninitialized memory 'to_send' " and " potentially uninitialized local pointer variable 'to_send' used ". Because of that I can't send anything to my registers, but only read.
move line 330 "delete[ ] to_send" from the end of int modbus::modbus_write(...) and place it within each of the 3 individual if condition blocks.