summaryrefslogtreecommitdiff
path: root/supervisor/shared
diff options
context:
space:
mode:
authorDan Halbert <halbert@halwitz.org>2019-03-25 20:42:08 -0400
committerDan Halbert <halbert@halwitz.org>2019-03-25 20:42:08 -0400
commit2229f17911bae7f6db386aad96ac3fa077a46862 (patch)
tree6e33a52213207b5f3fe29c971684578be0bf95fe /supervisor/shared
parent2459eabd66169d18f3f223c942cc73152ce6de68 (diff)
reset flush timer on call to filesystem_flush()
Diffstat (limited to 'supervisor/shared')
-rw-r--r--supervisor/shared/filesystem.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/supervisor/shared/filesystem.c b/supervisor/shared/filesystem.c
index dc061fa41..68c6f4749 100644
--- a/supervisor/shared/filesystem.c
+++ b/supervisor/shared/filesystem.c
@@ -115,6 +115,8 @@ void filesystem_init(bool create_allowed, bool force_create) {
}
void filesystem_flush(void) {
+ // Reset interval before next flush.
+ filesystem_flush_interval_ms = CIRCUITPY_FILESYSTEM_FLUSH_INTERVAL_MS;
supervisor_flash_flush();
}