From 1bbc6d24c7978fcb7d592e50fb279e8f913d634b Mon Sep 17 00:00:00 2001 From: Johannes Mockenhaupt Date: Sun, 28 Jan 2018 15:45:57 +0100 Subject: [PATCH] RuffyScripter: add toggle to avoid reading the quick info menu. --- .../main/java/de/jotomo/ruffyscripter/RuffyScripter.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/ruffyscripter/src/main/java/de/jotomo/ruffyscripter/RuffyScripter.java b/ruffyscripter/src/main/java/de/jotomo/ruffyscripter/RuffyScripter.java index c8b817aaae..aa748e031c 100644 --- a/ruffyscripter/src/main/java/de/jotomo/ruffyscripter/RuffyScripter.java +++ b/ruffyscripter/src/main/java/de/jotomo/ruffyscripter/RuffyScripter.java @@ -51,6 +51,8 @@ import de.jotomo.ruffyscripter.commands.SetTbrCommand; * operations and are cleanly separated from the thread management, connection management etc */ public class RuffyScripter implements RuffyCommands { + private final boolean readQuickInfoMenu = true; + private static final Logger log = LoggerFactory.getLogger(RuffyScripter.class); private IRuffyService ruffyService; @@ -215,7 +217,10 @@ public class RuffyScripter implements RuffyCommands { @Override public CommandResult readReservoirLevelAndLastBolus() { - return runCommand(new ReadReservoirLevelAndLastBolus()); + if (readQuickInfoMenu) { + return runCommand(new ReadReservoirLevelAndLastBolus()); + } + return runCommand(new ReadHistoryCommand(new PumpHistoryRequest().bolusHistory(PumpHistoryRequest.LAST))); } public void returnToRootMenu() {