From 04f42f0be45a90e72f2be5386b09ec55a9dd46e6 Mon Sep 17 00:00:00 2001 From: Aurora Date: Sat, 22 Oct 2016 16:31:31 +0200 Subject: [PATCH] Fix derp --- source/fs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/fs.c b/source/fs.c index 5bc2ad5..6ed6c9c 100644 --- a/source/fs.c +++ b/source/fs.c @@ -238,11 +238,11 @@ void findDumpFile(const char *path, char *fileName) FRESULT result; u32 n = 0; - while(true) + while(n <= 99999999) { 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); }