RuffyScripter.confirmAlert: wait till alarm isn't displayed anymore.
(cherry picked from commit 2af7df3)
This commit is contained in:
parent
ffb5ee3b22
commit
47718723fe
|
@ -844,6 +844,13 @@ public class RuffyScripter implements RuffyCommands {
|
|||
if (getCurrentMenu().getType() == MenuType.WARNING_OR_ERROR) {
|
||||
pressCheckKey();
|
||||
}
|
||||
// wait till the pump has processed the alarm, otherwise it might still be showing
|
||||
// when a command returns
|
||||
WarningOrErrorCode displayedWarning = readWarningOrErrorCode();
|
||||
while (displayedWarning.warningCode != null && displayedWarning.warningCode.equals(warningCode)) {
|
||||
waitForScreenUpdate();
|
||||
displayedWarning = readWarningOrErrorCode();
|
||||
}
|
||||
return true;
|
||||
}
|
||||
SystemClock.sleep(10);
|
||||
|
|
Loading…
Reference in a new issue