From 6a0273046d3c273ebacc35328bc7653704a940bf Mon Sep 17 00:00:00 2001 From: Johannes Mockenhaupt Date: Mon, 24 Jul 2017 02:24:30 +0200 Subject: [PATCH] Comment on English being the only supported pump language so far. --- .../jotomo/ruffyscripter/commands/SetTbrCommand.java | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/de/jotomo/ruffyscripter/commands/SetTbrCommand.java b/app/src/main/java/de/jotomo/ruffyscripter/commands/SetTbrCommand.java index 657c6b3ef2..ec29a6091a 100644 --- a/app/src/main/java/de/jotomo/ruffyscripter/commands/SetTbrCommand.java +++ b/app/src/main/java/de/jotomo/ruffyscripter/commands/SetTbrCommand.java @@ -259,10 +259,12 @@ public class SetTbrCommand implements Command { boolean alertProcessed = false; while (System.currentTimeMillis() < inTwoSeconds && !alertProcessed) { if (scripter.currentMenu.getType() == MenuType.WARNING_OR_ERROR) { - // check the raised alarm is TBR CANCELLED. - // note that the message is permanently displayed, while the error code is blinking. - // wait till the error code can be read results in the code hanging, despite - // menu updates coming in, so just check the message + // Check the raised alarm is TBR CANCELLED, so we're not accidentally cancelled + // a different that might be raised at the same time. + // Note that the message is permanently displayed, while the error code is blinking. + // A wait till the error code can be read results in the code hanging, despite + // menu updates coming in, so just check the message. + // TODO v2 this only works when the pump's language is English String errorMsg = (String) scripter.currentMenu.getAttribute(MenuAttribute.MESSAGE); if (!errorMsg.equals("TBR CANCELLED")) { throw new CommandException().success(false).enacted(false)