mirror of
https://github.com/joBr99/nspanel-lovelace-ui.git
synced 2026-02-21 21:54:46 +01:00
implement additional parameter on timeout for #746 (add nextion2text)
This commit is contained in:
committed by
github-actions[bot]
parent
1a42bde8cf
commit
108976da1b
@@ -883,6 +883,12 @@ Timer tmSerial
|
||||
//set timeout to global var
|
||||
spstr strCommand.txt,tTmp.txt,"~",1
|
||||
covx tTmp.txt,sleepTimeout,0,0
|
||||
//temporary disable sleep timer
|
||||
spstr strCommand.txt,tTmp.txt,"~",2
|
||||
if(tTmp.txt=="disable")
|
||||
{
|
||||
tmSleep.en=0
|
||||
}
|
||||
}
|
||||
if(tInstruction.txt=="pageType")
|
||||
{
|
||||
|
||||
@@ -616,6 +616,12 @@ Timer tmSerial
|
||||
//set timeout to global var
|
||||
spstr strCommand.txt,tTmp.txt,"~",1
|
||||
covx tTmp.txt,sleepTimeout,0,0
|
||||
//temporary disable sleep timer
|
||||
spstr strCommand.txt,tTmp.txt,"~",2
|
||||
if(tTmp.txt=="disable")
|
||||
{
|
||||
tmSleep.en=0
|
||||
}
|
||||
}
|
||||
if(tInstruction.txt=="pageType")
|
||||
{
|
||||
|
||||
@@ -1981,6 +1981,12 @@ Timer tmSerial
|
||||
//set timeout to global var
|
||||
spstr strCommand.txt,tTmp.txt,"~",1
|
||||
covx tTmp.txt,sleepTimeout,0,0
|
||||
//temporary disable sleep timer
|
||||
spstr strCommand.txt,tTmp.txt,"~",2
|
||||
if(tTmp.txt=="disable")
|
||||
{
|
||||
tmSleep.en=0
|
||||
}
|
||||
}
|
||||
// end of user code
|
||||
udelete payloadLength-1
|
||||
|
||||
@@ -966,6 +966,12 @@ Timer tmSerial
|
||||
//set timeout to global var
|
||||
spstr strCommand.txt,tTmp.txt,"~",1
|
||||
covx tTmp.txt,sleepTimeout,0,0
|
||||
//temporary disable sleep timer
|
||||
spstr strCommand.txt,tTmp.txt,"~",2
|
||||
if(tTmp.txt=="disable")
|
||||
{
|
||||
tmSleep.en=0
|
||||
}
|
||||
}
|
||||
// end of user code
|
||||
udelete payloadLength-1
|
||||
|
||||
@@ -597,6 +597,12 @@ Timer tmSerial
|
||||
//set timeout to global var
|
||||
spstr strCommand.txt,tTmp.txt,"~",1
|
||||
covx tTmp.txt,sleepTimeout,0,0
|
||||
//temporary disable sleep timer
|
||||
spstr strCommand.txt,tTmp.txt,"~",2
|
||||
if(tTmp.txt=="disable")
|
||||
{
|
||||
tmSleep.en=0
|
||||
}
|
||||
}
|
||||
if(tInstruction.txt=="pageType")
|
||||
{
|
||||
|
||||
@@ -1250,6 +1250,12 @@ Timer tmSerial
|
||||
//set timeout to global var
|
||||
spstr strCommand.txt,tTmp.txt,"~",1
|
||||
covx tTmp.txt,sleepTimeout,0,0
|
||||
//temporary disable sleep timer
|
||||
spstr strCommand.txt,tTmp.txt,"~",2
|
||||
if(tTmp.txt=="disable")
|
||||
{
|
||||
tmSleep.en=0
|
||||
}
|
||||
}
|
||||
// end of user code
|
||||
udelete payloadLength-1
|
||||
|
||||
@@ -1011,6 +1011,12 @@ Timer tmSerial
|
||||
//set timeout to global var
|
||||
spstr strCommand.txt,tTmp.txt,"~",1
|
||||
covx tTmp.txt,sleepTimeout,0,0
|
||||
//temporary disable sleep timer
|
||||
spstr strCommand.txt,tTmp.txt,"~",2
|
||||
if(tTmp.txt=="disable")
|
||||
{
|
||||
tmSleep.en=0
|
||||
}
|
||||
}
|
||||
// end of user code
|
||||
udelete payloadLength-1
|
||||
|
||||
@@ -650,6 +650,12 @@ Timer tmSerial
|
||||
//set timeout to global var
|
||||
spstr strCommand.txt,tTmp.txt,"~",1
|
||||
covx tTmp.txt,sleepTimeout,0,0
|
||||
//temporary disable sleep timer
|
||||
spstr strCommand.txt,tTmp.txt,"~",2
|
||||
if(tTmp.txt=="disable")
|
||||
{
|
||||
tmSleep.en=0
|
||||
}
|
||||
}
|
||||
if(tInstruction.txt=="pageType")
|
||||
{
|
||||
|
||||
@@ -1167,6 +1167,12 @@ Timer tmSerial
|
||||
//set timeout to global var
|
||||
spstr strCommand.txt,tTmp.txt,"~",1
|
||||
covx tTmp.txt,sleepTimeout,0,0
|
||||
//temporary disable sleep timer
|
||||
spstr strCommand.txt,tTmp.txt,"~",2
|
||||
if(tTmp.txt=="disable")
|
||||
{
|
||||
tmSleep.en=0
|
||||
}
|
||||
}
|
||||
// end of user code
|
||||
udelete payloadLength-1
|
||||
|
||||
Reference in New Issue
Block a user