From 184b3e1d6351b43e11f6fc08020bd5d733bf910a Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 16 Jan 2020 11:48:29 +1100 Subject: [PATCH] AP_Filesystem: fixed set_mtime semaphore --- libraries/AP_Filesystem/AP_Filesystem_FATFS.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libraries/AP_Filesystem/AP_Filesystem_FATFS.cpp b/libraries/AP_Filesystem/AP_Filesystem_FATFS.cpp index b46c53a4ef..45a7ef8772 100644 --- a/libraries/AP_Filesystem/AP_Filesystem_FATFS.cpp +++ b/libraries/AP_Filesystem/AP_Filesystem_FATFS.cpp @@ -815,6 +815,8 @@ bool AP_Filesystem::set_mtime(const char *filename, const time_t mtime_sec) fno.fdate = fdate; fno.ftime = ftime; + WITH_SEMAPHORE(sem); + return f_utime(filename, (FILINFO *)&fno) == FR_OK; }