add userRequested parameter to cancelTBR as needed in current AAPS dev
This commit is contained in:
parent
f3044a7cbb
commit
8182f99bd2
|
@ -532,7 +532,7 @@ public class ComboPlugin implements PluginBase, PumpInterface {
|
|||
}
|
||||
|
||||
@Override
|
||||
public PumpEnactResult cancelTempBasal() {
|
||||
public PumpEnactResult cancelTempBasal(boolean userRequested) {
|
||||
log.debug("cancelTempBasal called");
|
||||
|
||||
CommandResult commandResult = null;
|
||||
|
@ -541,7 +541,7 @@ public class ComboPlugin implements PluginBase, PumpInterface {
|
|||
|
||||
final TemporaryBasal activeTemp = MainApp.getConfigBuilder().getTempBasalFromHistory(System.currentTimeMillis());
|
||||
|
||||
if (activeTemp == null) {
|
||||
if (activeTemp == null || userRequested) {
|
||||
log.debug("cancelTempBasal: hard-cancelling TBR since user requested");
|
||||
commandResult = runCommand(new CancelTbrCommand());
|
||||
if (commandResult.enacted) {
|
||||
|
|
Loading…
Reference in a new issue