From 42dc3083693be13c5fa8f2ad8213245465e28adf Mon Sep 17 00:00:00 2001 From: zhushengle Date: Thu, 3 Jun 2021 20:56:55 +0800 Subject: [PATCH] fix: Fixed a spelling error in FS_LOCK_TIMEOUT_SEC. Close #I3TL66 Change-Id: Id7facf210d7bc3c29c631e2f0b48a332e7f1348c Signed-off-by: zhushengle --- components/fs/fatfs/fatfs.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/components/fs/fatfs/fatfs.c b/components/fs/fatfs/fatfs.c index f883f5f1..4e413184 100644 --- a/components/fs/fatfs/fatfs.c +++ b/components/fs/fatfs/fatfs.c @@ -50,9 +50,9 @@ #define FAT_MAX_OPEN_DIRS 8 #endif /* FAT_MAX_OPEN_DIRS */ -#ifndef FS_LOCK_TIMEMOUT_SEC -#define FS_LOCK_TIMEMOUT_SEC 15 -#endif /* FS_LOCK_TIMEMOUT_SEC */ +#ifndef FS_LOCK_TIMEOUT_SEC +#define FS_LOCK_TIMEOUT_SEC 15 +#endif /* FS_LOCK_TIMEOUT_SEC */ #define PART_NAME 0x0 #define VOLUME_NAME 0x1 @@ -88,7 +88,7 @@ static int FsLock(void) PRINTK("clock gettime err 0x%x!\r\n", errno); return errno; } - absTimeout.tv_sec += FS_LOCK_TIMEMOUT_SEC; + absTimeout.tv_sec += FS_LOCK_TIMEOUT_SEC; ret = pthread_mutex_timedlock(&g_fsMutex, &absTimeout); return ret; } @@ -1442,4 +1442,4 @@ struct FileOps g_fatfsFops = { .Rename = fatfs_rename, .Getattr = fatfs_stat, .Fsync = fatfs_fsync, -}; \ No newline at end of file +};