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:
parent
55e7006967
commit
b4950b3037
|
@ -266,7 +266,7 @@ public class ComboPlugin implements PluginBase, PumpInterface {
|
|||
|
||||
@Override
|
||||
public boolean isSuspended() {
|
||||
return false;
|
||||
return pumpState.suspended;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in a new issue