From 0f0f39dfb4c4536f0b0936844f8547d7eff1f135 Mon Sep 17 00:00:00 2001 From: Milos Kozak Date: Mon, 20 Nov 2017 17:26:03 +0100 Subject: [PATCH] log profiles if different --- .../plugins/ConfigBuilder/ConfigBuilderPlugin.java | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/ConfigBuilder/ConfigBuilderPlugin.java b/app/src/main/java/info/nightscout/androidaps/plugins/ConfigBuilder/ConfigBuilderPlugin.java index c074e7a8d0..eb8f6cb442 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/ConfigBuilder/ConfigBuilderPlugin.java +++ b/app/src/main/java/info/nightscout/androidaps/plugins/ConfigBuilder/ConfigBuilderPlugin.java @@ -409,9 +409,13 @@ public class ConfigBuilderPlugin implements PluginBase, PumpInterface, Constrain @Override public boolean isThisProfileSet(Profile profile) { - if (activePump != null) - return activePump.isThisProfileSet(profile); - else return true; + if (activePump != null) { + boolean result = activePump.isThisProfileSet(profile); + if (result == false) { + log.debug("Current profile: " + getProfile().getData().toString()); + log.debug("New profile: " + profile.getData().toString()); + } + } else return true; } @Override