diff --git a/radio/src/audio.cpp b/radio/src/audio.cpp index faf75c516..ce299856d 100644 --- a/radio/src/audio.cpp +++ b/radio/src/audio.cpp @@ -213,6 +213,17 @@ void referenceSystemAudioFiles() sdAvailableSystemAudioFiles.reset(); +#if defined(SIMU) + // f_readdir does an f_stat call on every file when running in the simulator + // so it is faster to just call f_stat on the files we are interested in + for (int i=0; i