mjs513
Senior Member+
Looks like the default line buffer is set to 80chars. Its defined in SdConfigFile.h:If the length of the [[ String arduinoStringValue ]] exceeds a certain value (69?) the added part " new"
[[ arduinoStringValue += " new"; ]] will be written to the "test_file.txt" in a separate line.
might be that there is a buffer overflow?!??
Code:
// If lines containing parameter values in the
// config file are longer than 40 characters, the
// length of the buffer can be changed here
#ifndef SDCONFIG_BUFFER_LENGTH
#define SDCONFIG_BUFFER_LENGTH 80//(40)
#endif /* SDCONFIG_BUFFER_LENGTH */
You can try to change the buffer length - should resolve the issue. Fingers crossed
Last edited: