This commit is contained in:
Aurora 2016-10-22 16:31:31 +02:00
parent e00ef893d0
commit 04f42f0be4

View File

@ -238,11 +238,11 @@ void findDumpFile(const char *path, char *fileName)
FRESULT result; FRESULT result;
u32 n = 0; u32 n = 0;
while(true) while(n <= 99999999)
{ {
result = f_findfirst(&dir, &info, path, fileName); result = f_findfirst(&dir, &info, path, fileName);
if(result != FR_OK || !info.fname[0] || n == 99999999) break; if(result != FR_OK || !info.fname[0]) break;
decItoa(++n, fileName + 11, 8); decItoa(++n, fileName + 11, 8);
} }