I’m running a loop in which I place data into a char array buffer, then convert it to a string and pass it to a function.
This seems to work the first 7 times through the loop, but on the 8th time, the string comes out blank.
With print statements, I’m able to see that the buffer contains the values that it should all the way up until the point where I convert it to a string (place it in a string constructor).
Since it doesn’t happen every time, I don’t know what could possibly be wrong. Any advice?