Merge pull request #97 from Natrox/master
Allow repeated command entries when in "Special Menu" by not clearing "SelectedDirectory".
This commit is contained in:
commit
bb2163e853
|
@ -903,7 +903,9 @@ void AnycubicTFTClass::GetCommandFromTFT()
|
||||||
}
|
}
|
||||||
case 8: // A8 GET SD LIST
|
case 8: // A8 GET SD LIST
|
||||||
#ifdef SDSUPPORT
|
#ifdef SDSUPPORT
|
||||||
SelectedDirectory[0]=0;
|
if (!SpecialMenu)
|
||||||
|
SelectedDirectory[0]=0;
|
||||||
|
|
||||||
if(!IS_SD_INSERTED())
|
if(!IS_SD_INSERTED())
|
||||||
{
|
{
|
||||||
ANYCUBIC_SERIAL_PROTOCOLPGM("J02");
|
ANYCUBIC_SERIAL_PROTOCOLPGM("J02");
|
||||||
|
@ -985,7 +987,8 @@ void AnycubicTFTClass::GetCommandFromTFT()
|
||||||
} else if (TFTstrchr_pointer[4] == '<') {
|
} else if (TFTstrchr_pointer[4] == '<') {
|
||||||
strcpy(SelectedDirectory, TFTstrchr_pointer+4);
|
strcpy(SelectedDirectory, TFTstrchr_pointer+4);
|
||||||
} else {
|
} else {
|
||||||
SelectedDirectory[0]=0;
|
if (!SpecialMenu)
|
||||||
|
SelectedDirectory[0]=0;
|
||||||
|
|
||||||
if(starpos!=NULL)
|
if(starpos!=NULL)
|
||||||
*(starpos-1)='\0';
|
*(starpos-1)='\0';
|
||||||
|
@ -1211,7 +1214,8 @@ void AnycubicTFTClass::GetCommandFromTFT()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
SelectedDirectory[0]=0;
|
if (!SpecialMenu)
|
||||||
|
SelectedDirectory[0]=0;
|
||||||
|
|
||||||
if(!IS_SD_INSERTED())
|
if(!IS_SD_INSERTED())
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue