From 23b3000e3a8df6440c45004a458bbe456a9f4938 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 19 Jan 2020 08:57:23 +1100 Subject: [PATCH] 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 --- libraries/AP_Filesystem/AP_Filesystem_FATFS.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_Filesystem/AP_Filesystem_FATFS.cpp b/libraries/AP_Filesystem/AP_Filesystem_FATFS.cpp index 0eab33336d..4501b75a00 100644 --- a/libraries/AP_Filesystem/AP_Filesystem_FATFS.cpp +++ b/libraries/AP_Filesystem/AP_Filesystem_FATFS.cpp @@ -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;