AP_Filesystem: fixed set_mtime semaphore

This commit is contained in:
Andrew Tridgell 2020-01-16 11:48:29 +11:00
parent e2ac1acfcc
commit d9a6c81eec

View File

@ -848,6 +848,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;
}