Skip to content

Commit

Permalink
Allow repeated command entries when in "Special Menu" by not clearing…
Browse files Browse the repository at this point in the history
… "SelectedDirectory".
  • Loading branch information
Sam Hardeman committed Oct 22, 2020
1 parent 2f686a7 commit b1aa1a5
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions Marlin/AnycubicTFT.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -903,7 +903,9 @@ void AnycubicTFTClass::GetCommandFromTFT()
}
case 8: // A8 GET SD LIST
#ifdef SDSUPPORT
SelectedDirectory[0]=0;
if (!SpecialMenu)
SelectedDirectory[0]=0;

if(!IS_SD_INSERTED())
{
ANYCUBIC_SERIAL_PROTOCOLPGM("J02");
Expand Down Expand Up @@ -985,7 +987,8 @@ void AnycubicTFTClass::GetCommandFromTFT()
} else if (TFTstrchr_pointer[4] == '<') {
strcpy(SelectedDirectory, TFTstrchr_pointer+4);
} else {
SelectedDirectory[0]=0;
if (!SpecialMenu)
SelectedDirectory[0]=0;

if(starpos!=NULL)
*(starpos-1)='\0';
Expand Down Expand Up @@ -1211,7 +1214,8 @@ void AnycubicTFTClass::GetCommandFromTFT()
}
}

SelectedDirectory[0]=0;
if (!SpecialMenu)
SelectedDirectory[0]=0;

if(!IS_SD_INSERTED())
{
Expand Down

0 comments on commit b1aa1a5

Please sign in to comment.