reset flush timer on call to filesystem_flush()
This commit is contained in:
parent
2459eabd66
commit
2229f17911
@ -115,6 +115,8 @@ void filesystem_init(bool create_allowed, bool force_create) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void filesystem_flush(void) {
|
void filesystem_flush(void) {
|
||||||
|
// Reset interval before next flush.
|
||||||
|
filesystem_flush_interval_ms = CIRCUITPY_FILESYSTEM_FLUSH_INTERVAL_MS;
|
||||||
supervisor_flash_flush();
|
supervisor_flash_flush();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user