From 2229f17911bae7f6db386aad96ac3fa077a46862 Mon Sep 17 00:00:00 2001 From: Dan Halbert Date: Mon, 25 Mar 2019 20:42:08 -0400 Subject: [PATCH] reset flush timer on call to filesystem_flush() --- supervisor/shared/filesystem.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/supervisor/shared/filesystem.c b/supervisor/shared/filesystem.c index dc061fa418..68c6f47499 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(); }