modbuspp icon indicating copy to clipboard operation
modbuspp copied to clipboard

the problem with 'to_send'

Open planetixin opened this issue 2 years ago • 1 comments

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.

planetixin avatar Apr 07 '22 11:04 planetixin

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.

VIRGZ77 avatar Sep 26 '23 13:09 VIRGZ77