untested fix for #768

This commit is contained in:
joBr99
2023-02-13 22:27:18 +01:00
parent d8e6d5f246
commit 75fb6f8e5d
5 changed files with 4 additions and 6 deletions

View File

@@ -33,6 +33,10 @@ for i in range(0,6):
// speed
spstr strCommand.txt,tTmp.txt,"~",{idxstart+7}
covx tTmp.txt,t{i}Speed.val,0,0
if(p0.h==320)
{{
t{i}Speed.val=t{i}Speed.val*-1
}}
if(t{i}Speed.val>120)
{{
t{i}Speed.val=120

View File

@@ -155,12 +155,6 @@ sharedfoot = """
//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