mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-24 16:53:57 -04:00
AP_Filesystem: fixed set_mtime semaphore
This commit is contained in:
parent
e2ac1acfcc
commit
d9a6c81eec
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user