From a764bf06d0975cbf1620b079351c7437053ea1a8 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Mon, 1 Apr 2013 01:58:37 -0700 Subject: 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 --- src/core/ao_log.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/core/ao_log.h') diff --git a/src/core/ao_log.h b/src/core/ao_log.h index 036d6f2d..cac78771 100644 --- a/src/core/ao_log.h +++ b/src/core/ao_log.h @@ -268,4 +268,7 @@ ao_log_data(__xdata struct ao_log_record *log) __reentrant; uint8_t ao_log_mega(__xdata struct ao_log_mega *log) __reentrant; +void +ao_log_flush(void); + #endif /* _AO_LOG_H_ */ -- cgit v1.2.3