AP_Filesystem: make all semaphores recursive

the cost is very similar and this prevents an easy coding error which
can occur on less used code paths
This commit is contained in:
Andrew Tridgell 2020-01-19 08:57:23 +11:00
parent 0ca45059ac
commit 23b3000e3a
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ static bool remount_needed;
// use a semaphore to ensure that only one filesystem operation is
// happening at a time. A recursive semaphore is used to cope with the
// mkdir() inside sdcard_retry()
static HAL_Semaphore_Recursive sem;
static HAL_Semaphore sem;
typedef struct {
FIL *fh;