modify Waits/timeouts to better Set tar with short Menu timeouts
This commit is contained in:
parent
b1a7083371
commit
29b5ad9696
1 changed files with 4 additions and 2 deletions
|
@ -169,8 +169,9 @@ public class SetTbrCommand implements Command {
|
||||||
if(retries>0) {
|
if(retries>0) {
|
||||||
retries--;
|
retries--;
|
||||||
int steps = (int) ((percentage - currentPercentage) / 10.0);
|
int steps = (int) ((percentage - currentPercentage) / 10.0);
|
||||||
scripter.step(steps,(steps<0? RuffyScripter.Key.DOWN: RuffyScripter.Key.UP), 3000);
|
|
||||||
Log.v("SetTbrCommand:tick",state+": adjusting basal with "+steps+" steps and "+retries+" retries left");
|
Log.v("SetTbrCommand:tick",state+": adjusting basal with "+steps+" steps and "+retries+" retries left");
|
||||||
|
scripter.step(steps,(steps<0? RuffyScripter.Key.DOWN: RuffyScripter.Key.UP), 500);
|
||||||
|
scripter.waitScreen(1000);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -236,8 +237,9 @@ public class SetTbrCommand implements Command {
|
||||||
steps++;
|
steps++;
|
||||||
else if(currentDuration+(steps*15)>duration)
|
else if(currentDuration+(steps*15)>duration)
|
||||||
steps--;
|
steps--;
|
||||||
scripter.step(steps,(steps>0? RuffyScripter.Key.UP: RuffyScripter.Key.DOWN), 3000);
|
|
||||||
Log.v("SetTbrCommand:tick",state+": adjusting duration with "+steps+" steps and "+retries+" retries left");
|
Log.v("SetTbrCommand:tick",state+": adjusting duration with "+steps+" steps and "+retries+" retries left");
|
||||||
|
scripter.step(steps,(steps>0? RuffyScripter.Key.UP: RuffyScripter.Key.DOWN), 500);
|
||||||
|
scripter.waitScreen(1000);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue