mirror of
https://github.com/joBr99/nspanel-lovelace-ui.git
synced 2026-02-22 22:18:38 +01:00
fix disable (add nextion2text)
This commit is contained in:
committed by
github-actions[bot]
parent
6ad9e20c5a
commit
ecb90d4bfd
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user