altos: Flush the on-board mega log after every sample interval.
authorKeith Packard <keithp@keithp.com>
Mon, 1 Apr 2013 08:58:37 +0000 (01:58 -0700)
committerKeith Packard <keithp@keithp.com>
Mon, 1 Apr 2013 08:58:37 +0000 (01:58 -0700)
commita764bf06d0975cbf1620b079351c7437053ea1a8
tree504e146cd2546e4a5292fc88764312ef6943e604
parentc2de64b10894b366398a8b37ebd2305d9be46d46
altos: Flush the on-board mega log after every sample interval.

SPI flash parts don't need flushing, but the SD card does. Make sure
the SD card contents are sane after every logging interval has passed
by flushing all dirty blocks to the device.

Signed-off-by: Keith Packard <keithp@keithp.com>
src/core/ao_log.h
src/core/ao_log_mega.c
src/drivers/ao_log_fat.c