From 5e5c837949c0c5a934698a1a225de7d74128bd05 Mon Sep 17 00:00:00 2001 From: Johannes Mockenhaupt Date: Sun, 23 Jul 2017 23:42:44 +0200 Subject: [PATCH] Clean up comment. --- .../de/jotomo/ruffyscripter/commands/SetTbrCommand.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 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 26f70a4e7d..657c6b3ef2 100644 --- a/app/src/main/java/de/jotomo/ruffyscripter/commands/SetTbrCommand.java +++ b/app/src/main/java/de/jotomo/ruffyscripter/commands/SetTbrCommand.java @@ -250,8 +250,10 @@ public class SetTbrCommand implements Command { scripter.verifyMenuIsDisplayed(MenuType.TBR_SET); scripter.pressCheckKey(); - // we could read remaining duration from MAIN_MENU, but but the time we're here, - // we could have moved from 0:02 to 0:01, so instead, check if a "TBR CANCELLED alert" + // A "TBR CANCELLED alert" is only raised by the pump when the remaining time is + // greater than 60s (displayed as 0:01, the pump goes from there to finished. + // We could read the remaining duration from MAIN_MENU, but by the time we're here, + // the pmup could have moved from 0:02 to 0:01, so instead, check if a "TBR CANCELLED alert" // is raised and if so dismiss it long inTwoSeconds = System.currentTimeMillis() + 5 * 1000; boolean alertProcessed = false;