another fi

This commit is contained in:
Johannes Mockenhaupt 2017-11-10 00:59:40 +01:00
parent 5ce956b5fc
commit bfc6f0b618
No known key found for this signature in database
GPG key ID: 9E1EA6AF7BBBB0D1

View file

@ -576,7 +576,7 @@ public class ComboPlugin implements PluginBase, PumpInterface, ConstraintsInterf
// TODO properly check fake neutral temp is active
// if (!commandResult.state.tbrActive) {
if (commandResult.success) {
if (commandResult.success) {
tempBasal = new TemporaryBasal(System.currentTimeMillis());
tempBasal.durationInMinutes = 15;
tempBasal.source = Source.USER;
@ -586,7 +586,7 @@ public class ComboPlugin implements PluginBase, PumpInterface, ConstraintsInterf
}
// TODO properly check pumpstate to confirm cancellation
PumpState state = commandResult.state;
// PumpState state = commandResult.state;
// if (!state.tbrActive && state.tbrPercent == percent
// && (state.tbrRemainingDuration == durationInMinutes || state.tbrRemainingDuration == durationInMinutes - 1)) {
//