Revert merge which was committed due to a misunderstanding.

This commit is contained in:
Johannes Mockenhaupt 2017-08-06 21:47:17 +02:00 committed by Sandra Keßler
parent 6dba4e4956
commit 089295188f

View file

@ -533,7 +533,7 @@ public class ComboPlugin implements PluginBase, PumpInterface {
}
@Override
public PumpEnactResult cancelTempBasal(boolean userRequested) {
public PumpEnactResult cancelTempBasal() {
log.debug("cancelTempBasal called");
CommandResult commandResult = null;
@ -578,14 +578,14 @@ public class ComboPlugin implements PluginBase, PumpInterface {
if (tempBasal != null) {
ConfigBuilderPlugin treatmentsInterface = MainApp.getConfigBuilder();
treatmentsInterface.addToHistoryTempBasal(tempBasal);
treatmentsInterface.addToHistoryTempBasal(tempStop);
}
if (commandResult != null) {
pumpEnactResult.success = commandResult.success;
pumpEnactResult.enacted = commandResult.enacted;
pumpEnactResult.comment = commandResult.message;
}
PumpEnactResult pumpEnactResult = new PumpEnactResult();
pumpEnactResult.success = commandResult.success;
pumpEnactResult.enacted = commandResult.enacted;
pumpEnactResult.comment = commandResult.message;
pumpEnactResult.isTempCancel = true;
return pumpEnactResult;
}