smarmengol / Modbus-Master-Slave-for-Arduino

Modbus Master-Slave library for Arduino
GNU Lesser General Public License v2.1
473 stars 328 forks source link

telegram[2].u8fct = 6; Randomly changed during program execution. #47

Closed graynet-dev closed 4 years ago

graynet-dev commented 5 years ago

telegram[2].u8fct = 6; Randomly changed during program execution.

Randomly changed during program execution. Moreover telegram[0].u8fct = 6; telegram[1].u8fct = 6; does not change and further more than 3 telegram[3].u8fct = 6; telegram[etc].u8fct = 6; also does not change. Perhaps somewhere pointer failure. I could not figure it out.

graynet-dev commented 5 years ago

I understood my mistake. The structure was created with a length of 2 (modbus_t telegram[2];) and a telegram made 6.