I’ve modified the Logomatic V2 firmware to allow for the option to append to a single file. It is [available here. This adds an option to the LOGCON.txt file called Append. Set Append to Y to continually append to the end of a single file called MainLog.txt. Set Append to N to use the default behavior (sequentially numbered logs). Both types of logs can coexist on the same SDcard so you can switch between Y and N.
It might still be a work in progress, but it’s been working fine for me. Any questions, feedback, concerns, etc. please send them my way!
You could possibly even use the original root_open_file() and open_file_in_dir() functions, and just add a flag which chooses how to open the file. Although this would break any code that uses the functions already, so not so much of a nice solution unless your re-writing the complete source.
I haven’t tested it, but it looks like it should be fine.
Just a tip, you could do a Make>Clean before zipping up files in future, just makes the zip a little smaller, and easier to work with when you first extract it.
I’ve been trying to mess with this for a while, after reading and writing to the same file in a sequence, The data starts to overwrite the start of the file after 16384 characters.
Does anyone know of this problem or know of a better way to append data to one file?
I’m guessing that when the file allocated the next 16kB cluster, the library loses the place to start writing. It starts to overwrite the previous cluster instead of writing into the new one.