From b4950b3037c33bb2eec8cdb5577e8ccdfb38a3f9 Mon Sep 17 00:00:00 2001 From: Johannes Mockenhaupt Date: Mon, 17 Jul 2017 18:40:38 +0200 Subject: [PATCH] Provide suspended state information to AAPS. AAPS seems to still try to issue commands (like cancel TBR, though none is running?)), despite showing "Pump suspended" on the home screen. With the DanaR, AAPS also tries to run commands when the pump is suspended, but there, the treatment is logged as being administered despite the pump not having done that. Here, the pump response with success=false, enacted=false, which causes the ComboPlugin class to NOT create any treatments. No errors are raised, as this is considered a regular state: no treatments are enacted, overview screen shows "pump suspended" and the combo beeping away. That AAPS still tries to issue TBR commands ... that's AAPS' problem for now. Buttons to issue boluses are hiden though. --- .../nightscout/androidaps/plugins/PumpCombo/ComboPlugin.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/PumpCombo/ComboPlugin.java b/app/src/main/java/info/nightscout/androidaps/plugins/PumpCombo/ComboPlugin.java index 605c55dd7a..346a51784d 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/PumpCombo/ComboPlugin.java +++ b/app/src/main/java/info/nightscout/androidaps/plugins/PumpCombo/ComboPlugin.java @@ -266,7 +266,7 @@ public class ComboPlugin implements PluginBase, PumpInterface { @Override public boolean isSuspended() { - return false; + return pumpState.suspended; } @Override