This commit is contained in:
Milos Kozak 2021-03-16 19:06:05 +01:00
parent 9d5d79dcec
commit 91fecb6cc7
2 changed files with 3 additions and 2 deletions

View file

@ -493,7 +493,7 @@ public class NSClientPlugin extends PluginBase {
.subscribe( .subscribe(
result -> { result -> {
result.getInserted().forEach(record -> uel.log("CAREPORTAL EVENT NS", record.getType().getText(), 0.0, 0.0, 0, 0)); result.getInserted().forEach(record -> uel.log("CAREPORTAL EVENT NS", record.getType().getText(), 0.0, 0.0, 0, 0));
result.getInvalidated().forEach(record -> uel.log("CAREPORTAL EVENT DELETED FROM NS", record.getType().getText(), 0.0, 0.0, 0, 0)); result.getInvalidated().forEach(record -> uel.log("CAREPORTAL EVENT DELETED FROM NS", "", 0.0, 0.0, record.getTimestamp(), 0));
}, },
error -> aapsLogger.error(LTag.DATABASE, "Error while saving therapy event", error))); error -> aapsLogger.error(LTag.DATABASE, "Error while saving therapy event", error)));
} else { } else {

View file

@ -124,6 +124,7 @@ public class AapsOmnipodErosManager {
private boolean batteryChangeLoggingEnabled; private boolean batteryChangeLoggingEnabled;
private final CompositeDisposable disposable = new CompositeDisposable(); private final CompositeDisposable disposable = new CompositeDisposable();
private boolean aBoolean;
@Inject @Inject
public AapsOmnipodErosManager(OmnipodRileyLinkCommunicationManager communicationService, public AapsOmnipodErosManager(OmnipodRileyLinkCommunicationManager communicationService,
@ -719,7 +720,7 @@ public class AapsOmnipodErosManager {
detailedBolusInfo.carbTime = 0; detailedBolusInfo.carbTime = 0;
detailedBolusInfo.carbs = 0; detailedBolusInfo.carbs = 0;
} }
activePlugin.getActiveTreatments().addToHistoryTreatment(detailedBolusInfo, false); aBoolean;
} }
public synchronized void createSuspendedFakeTbrIfNotExists() { public synchronized void createSuspendedFakeTbrIfNotExists() {