fix disable (add nextion2text)

This commit is contained in:
joBr99
2022-05-22 08:36:43 +00:00
committed by github-actions[bot]
parent 6ad9e20c5a
commit ecb90d4bfd
18 changed files with 568 additions and 545 deletions

View File

@@ -647,39 +647,39 @@ Timer tmSerial
}
// set icon bUp
spstr strCommand.txt,tTmp.txt,"~",5
if(tTmp.txt!="")
if(tTmp.txt=="disable")
{
tsw bUp1,0
bUp1.pco=27501
}else if(tTmp.txt!="")
{
bUp1.txt=tTmp.txt
tsw bUp1,1
bUp1.pco=65535
}else if(tTmp.txt=="disable")
{
tsw bUp1,0
bUp1.pco=27501
}
// set icon bStop
spstr strCommand.txt,tTmp.txt,"~",6
if(tTmp.txt!="")
if(tTmp.txt=="disable")
{
tsw bStop1,0
bStop1.pco=27501
}else if(tTmp.txt!="")
{
bStop1.txt=tTmp.txt
tsw bStop1,1
bStop1.pco=65535
}else if(tTmp.txt=="disable")
{
tsw bStop1,0
bStop1.pco=27501
}
// set icon bDown
spstr strCommand.txt,tTmp.txt,"~",7
if(tTmp.txt!="")
if(tTmp.txt=="disable")
{
tsw bDown1,0
bDown1.pco=27501
}else if(tTmp.txt!="")
{
bDown1.txt=tTmp.txt
tsw bDown1,1
bDown1.pco=65535
}else if(tTmp.txt=="disable")
{
tsw bDown1,0
bDown1.pco=27501
}
}
if(tInstruction.txt=="dimmode")