Cart_Reader.ino: make myDir a variable local to fileBrowser.

It is not used anywhere else.
This commit is contained in:
Vincent Pelletier 2022-10-22 03:01:50 +00:00
parent d7bbc59607
commit dc9ee3b01e

View File

@ -176,7 +176,6 @@ char ver[5] = "10.4";
// SD Card // SD Card
#include "SdFat.h" #include "SdFat.h"
SdFs sd; SdFs sd;
FsFile myDir;
FsFile myFile; FsFile myFile;
#ifdef global_log #ifdef global_log
FsFile myLog; FsFile myLog;
@ -2972,6 +2971,8 @@ void wait_encoder() {
void fileBrowser(const __FlashStringHelper* browserTitle) { void fileBrowser(const __FlashStringHelper* browserTitle) {
char fileNames[7][FILENAME_LENGTH]; char fileNames[7][FILENAME_LENGTH];
int currFile; int currFile;
FsFile myDir;
filebrowse = 1; filebrowse = 1;
// Root // Root