From c57ac3b916c15b13826f03ea919143f0a3ced3fb Mon Sep 17 00:00:00 2001 From: Thomas Watson Date: Mon, 30 Dec 2024 11:39:22 -0600 Subject: [PATCH] AP_Filesystem: FATFS: remove redundant delay expectations The delays will be canceled on return by the EXPECT_DELAY_MS(3000) destructor at the start of the function. The current behavior will unexpectedly cancel delays from higher levels up the stack and is likely not what was intended. --- libraries/AP_Filesystem/AP_Filesystem_FATFS.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/libraries/AP_Filesystem/AP_Filesystem_FATFS.cpp b/libraries/AP_Filesystem/AP_Filesystem_FATFS.cpp index 28a2073492..746a636c6b 100644 --- a/libraries/AP_Filesystem/AP_Filesystem_FATFS.cpp +++ b/libraries/AP_Filesystem/AP_Filesystem_FATFS.cpp @@ -254,7 +254,6 @@ static bool remount_file_system(void) } if (!sdcard_retry()) { remount_needed = true; - EXPECT_DELAY_MS(0); return false; } remount_needed = false; @@ -278,7 +277,6 @@ static bool remount_file_system(void) f_lseek(fh, offset); } } - EXPECT_DELAY_MS(0); return true; }