From 2908d23e6017653786f0fff6af4132e7a94dbb60 Mon Sep 17 00:00:00 2001 From: Fabian Schlenz Date: Sun, 21 Aug 2022 17:40:32 +0200 Subject: [PATCH] =?UTF-8?q?Alten=20Code=20gel=C3=B6scht.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/playlist_manager.cpp | 28 ---------------------------- 1 file changed, 28 deletions(-) diff --git a/src/playlist_manager.cpp b/src/playlist_manager.cpp index 9c0f635..91ac74b 100644 --- a/src/playlist_manager.cpp +++ b/src/playlist_manager.cpp @@ -6,21 +6,6 @@ PlaylistManager::PlaylistManager() { SPIMaster::enable_sd(); current_rfid_tag_id = String(""); - /* - File root = SD.open("/"); - while(File entry = root.openNextFile()) { - if (entry.isDirectory()) { - String filename("/"); - filename.concat(entry.name()); - if (!filename.startsWith("/.")) { - Serial.println(filename); - dirs.push_back(filename); - } - } - } - root.close(); - */ - if (!SD.exists("/_mapping.txt")) { Serial.println("WARNING: /_mapping.txt not found!"); } else { @@ -39,19 +24,6 @@ PlaylistManager::PlaylistManager() { String folder = data.substring(eq + 1); Serial.printf(" Adding mapping: %s=>%s\n", rfid_id.c_str(), folder.c_str()); map[rfid_id] = folder; - - /*if (folder.charAt(0)=='/') { - bool found=false; - for (String f: dirs) { - if (f.equals(folder)) { - found = true; - break; - } - } - if (!found) { - Serial.printf("WARNING: Found mapping for RFID id %s which maps to non-existing folder %s!\n", rfid_id.c_str(), folder.c_str()); - } - }*/ } } f.close();