diff options
author | Keith Packard <keithp@keithp.com> | 2013-04-01 01:58:37 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2013-04-01 01:58:37 -0700 |
commit | a764bf06d0975cbf1620b079351c7437053ea1a8 (patch) | |
tree | 504e146cd2546e4a5292fc88764312ef6943e604 /src/core/ao_log.h | |
parent | c2de64b10894b366398a8b37ebd2305d9be46d46 (diff) |
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>
Diffstat (limited to 'src/core/ao_log.h')
-rw-r--r-- | src/core/ao_log.h | 3 |
1 files changed, 3 insertions, 0 deletions
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_ */ |