wait till we get something currentDuration % 15 == 0

This commit is contained in:
Sandra Keßler 2017-07-30 22:22:13 +02:00
parent bfb6039c16
commit 7c001e97bf

View file

@ -162,7 +162,8 @@ public class SetTbrCommand implements Command {
private void inputTbrDuration(RuffyScripter scripter) { private void inputTbrDuration(RuffyScripter scripter) {
scripter.verifyMenuIsDisplayed(MenuType.TBR_DURATION); scripter.verifyMenuIsDisplayed(MenuType.TBR_DURATION);
long currentDuration = readDisplayedTbrDuration(scripter); long currentDuration = readDisplayedTbrDuration(scripter);
if (currentDuration % 15 != 0) { while(currentDuration % 15 != 0)
{
// The duration displayed is how long an active TBR will still run, // 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. // which might be something like 0:13, hence not in 15 minute steps.
// Pressing up will go to the next higher 15 minute step. // Pressing up will go to the next higher 15 minute step.