From 7c001e97bf4374e5ac00b1a8626a1ec28a6000e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandra=20Ke=C3=9Fler?= Date: Sun, 30 Jul 2017 22:22:13 +0200 Subject: [PATCH] wait till we get something currentDuration % 15 == 0 --- .../java/de/jotomo/ruffyscripter/commands/SetTbrCommand.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 a1c7a800fb..be072e3f20 100644 --- a/app/src/main/java/de/jotomo/ruffyscripter/commands/SetTbrCommand.java +++ b/app/src/main/java/de/jotomo/ruffyscripter/commands/SetTbrCommand.java @@ -162,7 +162,8 @@ public class SetTbrCommand implements Command { private void inputTbrDuration(RuffyScripter scripter) { scripter.verifyMenuIsDisplayed(MenuType.TBR_DURATION); long currentDuration = readDisplayedTbrDuration(scripter); - if (currentDuration % 15 != 0) { + while(currentDuration % 15 != 0) + { // The duration displayed is how long an active TBR will still run, // which might be something like 0:13, hence not in 15 minute steps. // Pressing up will go to the next higher 15 minute step.