Browse Source

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
c415-sdk
Andrew Tridgell 5 years ago
parent
commit
23b3000e3a
  1. 2
      libraries/AP_Filesystem/AP_Filesystem_FATFS.cpp

2
libraries/AP_Filesystem/AP_Filesystem_FATFS.cpp

@ -31,7 +31,7 @@ static bool remount_needed; @@ -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;

Loading…
Cancel
Save