From 2572ed0eba32e0ba05422fe4550867102ee16855 Mon Sep 17 00:00:00 2001 From: Damjan Adamic Date: Sun, 15 Nov 2015 16:20:32 +0100 Subject: [PATCH] Removed unnecessary FILINFO --- radio/src/opentx.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/radio/src/opentx.cpp b/radio/src/opentx.cpp index 2e24f5b99..720ae0cf4 100644 --- a/radio/src/opentx.cpp +++ b/radio/src/opentx.cpp @@ -412,11 +412,7 @@ void checkModelIdUnique(uint8_t index, uint8_t module) #if defined(SDCARD) bool isFileAvailable(const char * filename) { - FILINFO info; - TCHAR lfn[_MAX_LFN + 1]; - info.lfname = lfn; - info.lfsize = sizeof(lfn); - return f_stat(filename, &info) == FR_OK; + return f_stat(filename, 0) == FR_OK; } #endif