From dc9ee3b01e39d1b2bbd3400af7b68cd924717a13 Mon Sep 17 00:00:00 2001 From: Vincent Pelletier Date: Sat, 22 Oct 2022 03:01:50 +0000 Subject: [PATCH] Cart_Reader.ino: make myDir a variable local to fileBrowser. It is not used anywhere else. --- Cart_Reader/Cart_Reader.ino | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Cart_Reader/Cart_Reader.ino b/Cart_Reader/Cart_Reader.ino index 5475f88..f55304f 100644 --- a/Cart_Reader/Cart_Reader.ino +++ b/Cart_Reader/Cart_Reader.ino @@ -176,7 +176,6 @@ char ver[5] = "10.4"; // SD Card #include "SdFat.h" SdFs sd; -FsFile myDir; FsFile myFile; #ifdef global_log FsFile myLog; @@ -2972,6 +2971,8 @@ void wait_encoder() { void fileBrowser(const __FlashStringHelper* browserTitle) { char fileNames[7][FILENAME_LENGTH]; int currFile; + FsFile myDir; + filebrowse = 1; // Root