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.
This commit is contained in:
Johannes Mockenhaupt 2017-07-17 18:40:38 +02:00
parent 55e7006967
commit b4950b3037
No known key found for this signature in database
GPG key ID: 9E1EA6AF7BBBB0D1

View file

@ -266,7 +266,7 @@ public class ComboPlugin implements PluginBase, PumpInterface {
@Override
public boolean isSuspended() {
return false;
return pumpState.suspended;
}
@Override