File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,6 @@ CardReader::CardReader()
30
30
memset (workDirParents, 0 , sizeof (workDirParents));
31
31
presort_flag = false ;
32
32
33
- autostart_stilltocheck=true ; // the SD start is delayed, because otherwise the serial cannot answer fast enough to make contact with the host software.
34
33
lastnr=0 ;
35
34
// power to SD reader
36
35
#if SDPOWER > -1
@@ -614,14 +613,17 @@ void CardReader::write_command_no_newline(char *buf)
614
613
615
614
void CardReader::checkautostart (bool force)
616
615
{
616
+ // The SD start is delayed because otherwise the serial cannot answer
617
+ // fast enough to make contact with the host software.
618
+ static bool autostart_stilltocheck = true ;
617
619
if (!force)
618
620
{
619
621
if (!autostart_stilltocheck)
620
622
return ;
621
623
if (autostart_atmillis.expired (5000 ))
622
624
return ;
623
625
}
624
- autostart_stilltocheck= false ;
626
+ autostart_stilltocheck = false ;
625
627
if (!cardOK)
626
628
{
627
629
initsd ();
Original file line number Diff line number Diff line change @@ -133,8 +133,6 @@ class CardReader
133
133
ShortTimer autostart_atmillis;
134
134
uint32_t sdpos ;
135
135
136
- bool autostart_stilltocheck; // the sd start is delayed, because otherwise the serial cannot answer fast enought to make contact with the hostsoftware.
137
-
138
136
uint16_t nrFiles; // counter for the files in the current directory and recycled as position counter for getting the nrFiles'th name in the directory.
139
137
140
138
bool diveSubfolder (const char *&fileName);
You can’t perform that action at this time.
0 commit comments