Merge branch 'setTBR-smallfix' into 'develop'

setTBR - check for TBR and RUNTIME

See merge request !4
This commit is contained in:
Johannes Mockenhaupt 2017-07-26 16:04:09 +00:00
commit 54954be17a

View file

@ -297,7 +297,7 @@ public class SetTbrCommand implements Command {
scripter.verifyMenuIsDisplayed(MenuType.MAIN_MENU);
// new TBR set; percentage and duration must be displayed ...
if (!scripter.currentMenu.attributes().contains(MenuAttribute.TBR) ||
!scripter.currentMenu.attributes().contains(MenuAttribute.TBR)) {
!scripter.currentMenu.attributes().contains(MenuAttribute.RUNTIME)) {
throw new CommandException().message("Setting TBR failed, according to MAIN_MENU no TBR is active");
}
Double mmTbrPercentage = (Double) scripter.currentMenu.getAttribute(MenuAttribute.TBR);