From 92ca9aaedecfbf770daebd7b29b9b46ae7fc6b19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandra=20Ke=C3=9Fler?= Date: Sat, 12 Aug 2017 00:27:30 +0200 Subject: [PATCH] some Small improvements --- .../de/jotomo/ruffyscripter/commands/SetTbrCommand.java | 8 +++----- 1 file changed, 3 insertions(+), 5 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 15013764d3..77bff247c8 100644 --- a/app/src/main/java/de/jotomo/ruffyscripter/commands/SetTbrCommand.java +++ b/app/src/main/java/de/jotomo/ruffyscripter/commands/SetTbrCommand.java @@ -121,7 +121,7 @@ public class SetTbrCommand implements Command { scripter.waitScreen(1000); } if(currentPercentage<0 ||retries < 0) - throw new Exception("unable to set basalrate"); + throw new Exception("unable to set basalrate"); Log.v("SetTbrCommand","4. checking basal in "+scripter.currentMenu); scripter.waitScreen(1000); @@ -179,12 +179,9 @@ public class SetTbrCommand implements Command { Log.v("SetTbrCommand", "Adjusting duration(" + requestedDuration + "/" + actualDuration + ") with " + steps + " steps and " + retries + " retries left"); scripter.step(steps, (steps > 0 ? RuffyScripter.Key.UP : RuffyScripter.Key.DOWN), 500); scripter.waitScreen(1000); - } else { - break; } } - else - scripter.waitScreen(1000); + scripter.waitScreen(1000); } if (currentDuration < 0 || retries < 0) throw new Exception("unable to set duration"); @@ -229,6 +226,7 @@ public class SetTbrCommand implements Command { scripter.pressCheckKey(); retries++; canceledError = true; + scripter.waitScreen(1000); } else { retries--;