Skip to content

Commit

Permalink
Merge pull request #97 from Natrox/master
Browse files Browse the repository at this point in the history
Allow repeated command entries when in "Special Menu" by not clearing "SelectedDirectory".
  • Loading branch information
davidramiro authored Oct 22, 2020
2 parents 2f686a7 + b1aa1a5 commit bb2163e
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 bb2163e

Please sign in to comment.