I'm starting openlog in newlog mode.
I write data to the log using Serial1.write (I'm on a mega)
when I power down, I have a zero length file.
It looks to me like I'm not flushing the file at the end,but there is no "end" routine to be called when my device loses power (that is how this device will be turned off).
I'm starting openlog in newlog mode. I write data to the log using Serial1.write (I'm on a mega) when I power down, I have a zero length file.
It looks to me like I'm not flushing the file at the end,but there is no "end" routine to be called when my device loses power (that is how this device will be turned off).
Is there a flush method that I'm missing?