SetTbrCommand: verify current menu when checking running TBR.
This commit is contained in:
parent
3156efaaf6
commit
7ed64c5a7d
|
@ -69,6 +69,7 @@ public class SetTbrCommand extends BaseCommand {
|
||||||
// and all). To avoid this, wait until the active TBR runs out if the active TBR
|
// and all). To avoid this, wait until the active TBR runs out if the active TBR
|
||||||
// is about to end
|
// is about to end
|
||||||
long timeout = System.currentTimeMillis() + 65 * 1000;
|
long timeout = System.currentTimeMillis() + 65 * 1000;
|
||||||
|
scripter.verifyMenuIsDisplayed(MenuType.MAIN_MENU);
|
||||||
PumpState state = scripter.readPumpStateInternal();
|
PumpState state = scripter.readPumpStateInternal();
|
||||||
if (state.tbrRemainingDuration == 1) {
|
if (state.tbrRemainingDuration == 1) {
|
||||||
while (state.tbrActive && System.currentTimeMillis() < timeout) {
|
while (state.tbrActive && System.currentTimeMillis() < timeout) {
|
||||||
|
|
Loading…
Reference in a new issue