From 29b5ad969690ab9bc526e1917f322b4ee6692df8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandra=20Ke=C3=9Fler?= Date: Sat, 5 Aug 2017 15:33:52 +0200 Subject: [PATCH] modify Waits/timeouts to better Set tar with short Menu timeouts --- .../de/jotomo/ruffyscripter/commands/SetTbrCommand.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/de/jotomo/ruffyscripter/commands/SetTbrCommand.java b/app/src/main/java/de/jotomo/ruffyscripter/commands/SetTbrCommand.java index 0fabcdc53b..1e190de12e 100644 --- a/app/src/main/java/de/jotomo/ruffyscripter/commands/SetTbrCommand.java +++ b/app/src/main/java/de/jotomo/ruffyscripter/commands/SetTbrCommand.java @@ -169,8 +169,9 @@ public class SetTbrCommand implements Command { if(retries>0) { retries--; 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"); + scripter.step(steps,(steps<0? RuffyScripter.Key.DOWN: RuffyScripter.Key.UP), 500); + scripter.waitScreen(1000); } else { @@ -236,8 +237,9 @@ public class SetTbrCommand implements Command { steps++; else if(currentDuration+(steps*15)>duration) 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"); + scripter.step(steps,(steps>0? RuffyScripter.Key.UP: RuffyScripter.Key.DOWN), 500); + scripter.waitScreen(1000); } else {