small bugfix..

This commit is contained in:
Dooho Yi 2023-11-10 01:00:39 +09:00
parent b5e617c33d
commit 4d0493f4aa
2 changed files with 7 additions and 4 deletions

View file

@ -25,3 +25,4 @@ lib_deps =
adafruit/Adafruit SSD1306@^2.4.5 adafruit/Adafruit SSD1306@^2.4.5
adafruit/Adafruit BusIO@^1.7.3 adafruit/Adafruit BusIO@^1.7.3
arkhipenko/TaskScheduler@^3.3.0 arkhipenko/TaskScheduler@^3.3.0
adafruit/Adafruit GFX Library@^1.11.9

View file

@ -5,7 +5,7 @@
// 'ENABLE_SCREEN' : whether if playing info. displayed or not. // 'ENABLE_SCREEN' : whether if playing info. displayed or not.
// //
//============</configurations>============ //============</configurations>============
// #define ENABLE_SCREEN #define ENABLE_SCREEN
//============<audioooo-param>============ //============<audioooo-param>============
#define GAIN_MAX 1.0 // if 1.0 is too loud, give max. limit here. #define GAIN_MAX 1.0 // if 1.0 is too loud, give max. limit here.
@ -128,6 +128,8 @@ int get_music_list(fs::FS &fs, const char *dirname, uint8_t levels, String wavli
if (file.isDirectory()) { } if (file.isDirectory()) { }
else { else {
String temp = file.name(); String temp = file.name();
// Serial.println("looking at file: " + temp);
temp.toLowerCase();
if (temp.endsWith(".wav")) { if (temp.endsWith(".wav")) {
wavlist[i] = temp; wavlist[i] = temp;
i++; i++;