AP_Filesystem: use a recursive semaphore
this is needed to cope with the mkdir("/APM") in sdcard_retry()
This commit is contained in:
parent
7afd51d03e
commit
b72dcf6478
@ -24,8 +24,9 @@ static bool remount_needed;
|
|||||||
#define FATFS_X (S_IXUSR | S_IXGRP | S_IXOTH) /*< FatFs Execute perms */
|
#define FATFS_X (S_IXUSR | S_IXGRP | S_IXOTH) /*< FatFs Execute perms */
|
||||||
|
|
||||||
// use a semaphore to ensure that only one filesystem operation is
|
// use a semaphore to ensure that only one filesystem operation is
|
||||||
// happening at a time
|
// happening at a time. A recursive semaphore is used to cope with the
|
||||||
static HAL_Semaphore sem;
|
// mkdir() inside sdcard_retry()
|
||||||
|
static HAL_Semaphore_Recursive sem;
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
FIL *fh;
|
FIL *fh;
|
||||||
|
Loading…
Reference in New Issue
Block a user