From 6342dc58de2732b09b5eb334d97020e864b894d0 Mon Sep 17 00:00:00 2001 From: Eric Helgeson Date: Sat, 10 Apr 2021 12:13:19 -0500 Subject: [PATCH] Ignore case on file names --- src/BlueSCSI.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/BlueSCSI.cpp b/src/BlueSCSI.cpp index f0ce7ad..abbf230 100644 --- a/src/BlueSCSI.cpp +++ b/src/BlueSCSI.cpp @@ -426,7 +426,8 @@ void setup() file.getName(name, MAX_FILE_PATH+1); file.close(); String file_name = String(name); - if(file_name.startsWith("HD") && file_name.endsWith(".hda")) { + file_name.toLowerCase(); + if(file_name.startsWith("hd") && file_name.endsWith(".hda")) { int id = name[HDIMG_ID_POS] - '0'; int lun = name[HDIMG_LUN_POS] - '0'; int blk = name[HDIMG_BLK_POS] - '0';