copy pumpId when converting EB -> TRB
This commit is contained in:
parent
7025d021f5
commit
514bdcda31
|
@ -105,6 +105,7 @@ public class TemporaryBasal implements Interval {
|
|||
this.isFakeExtended = true;
|
||||
this.netExtendedRate = extendedBolus.absoluteRate();
|
||||
this.absoluteRate = basal + extendedBolus.absoluteRate();
|
||||
this.pumpId = extendedBolus.pumpId;
|
||||
}
|
||||
|
||||
public TemporaryBasal clone() {
|
||||
|
|
|
@ -83,7 +83,7 @@ class HistoryLogAdapter {
|
|||
log.debug("Create new EB: " + eventDate + " " + insulin + " " + durationInMinutes);
|
||||
} else {
|
||||
if (L.isEnabled(L.PUMP))
|
||||
log.debug("Loaded existing EB record: " + extendedBolusFromHistory.toString());
|
||||
log.debug("Loaded existing EB record: " + extendedBolusFromHistory.log());
|
||||
if (Math.abs(eventDate - extendedBolusFromHistory.date) < MAX_TIME_DIFFERENCE) {
|
||||
if (extendedBolusFromHistory.source != Source.PUMP) {
|
||||
if (L.isEnabled(L.PUMP))
|
||||
|
|
Loading…
Reference in a new issue