more time

This commit is contained in:
Sandra Keßler 2017-07-31 09:08:12 +02:00
parent a7165497ea
commit 3497296b6c
2 changed files with 5 additions and 2 deletions

View file

@ -336,7 +336,7 @@ public class RuffyScripter {
// if the user just pressed a button on the combo, the screen needs to time first // if the user just pressed a button on the combo, the screen needs to time first
// before a connection is possible. In that case, it takes 45s before the // before a connection is possible. In that case, it takes 45s before the
// connection comes up. // connection comes up.
waitForMenuUpdate(90); waitForMenuUpdate(180);
} catch (RemoteException e) { } catch (RemoteException e) {
throw new CommandException().exception(e).message("Unexpected exception while initiating/restoring pump connection"); throw new CommandException().exception(e).message("Unexpected exception while initiating/restoring pump connection");
} }
@ -387,7 +387,7 @@ public class RuffyScripter {
* Wait until the menu update is in * Wait until the menu update is in
*/ */
public void waitForMenuUpdate() { public void waitForMenuUpdate() {
waitForMenuUpdate(60); waitForMenuUpdate(120);
} }
public void waitForMenuUpdate(long timeoutInSeconds) { public void waitForMenuUpdate(long timeoutInSeconds) {

View file

@ -171,9 +171,12 @@ public class SetTbrCommand implements Command {
// Pressing up from 23:59 works to go to 24:00. // Pressing up from 23:59 works to go to 24:00.
scripter.verifyMenuIsDisplayed(MenuType.TBR_DURATION); scripter.verifyMenuIsDisplayed(MenuType.TBR_DURATION);
scripter.pressUpKey(); scripter.pressUpKey();
SystemClock.sleep(300);
scripter.waitForMenuUpdate(); scripter.waitForMenuUpdate();
currentDuration = readDisplayedTbrDuration(scripter); currentDuration = readDisplayedTbrDuration(scripter);
} }
SystemClock.sleep(300);
currentDuration = readDisplayedTbrDuration(scripter);
log.debug("Current TBR duration: " + currentDuration); log.debug("Current TBR duration: " + currentDuration);
long durationChange = duration - currentDuration; long durationChange = duration - currentDuration;
long durationSteps = durationChange / 15; long durationSteps = durationChange / 15;