sparkfun / OpenLog

Open Source Hardware Datalogger
https://www.sparkfun.com/products/9530
Other
553 stars 216 forks source link

how do I flush the log? #184

Closed slootsky closed 9 years ago

slootsky commented 9 years ago

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?

slootsky commented 9 years ago

nvm. user error.

(doesn't log if I don't initialize the baud rate)