EOPATCH2: fix NS carbs sync
This commit is contained in:
parent
294f3cb789
commit
53c13684ea
|
@ -360,7 +360,7 @@ public class PatchManager implements IPatchManager {
|
|||
|
||||
if (detailedBolusInfo.insulin > 0) {
|
||||
pumpSync.syncBolusWithPumpId(
|
||||
detailedBolusInfo.timestamp,
|
||||
dateUtil.now(), // Use real timestamp to have it different from carbs (otherwise NS sync fail)
|
||||
detailedBolusInfo.insulin,
|
||||
detailedBolusInfo.getBolusType(),
|
||||
dateUtil.now(),
|
||||
|
@ -368,15 +368,6 @@ public class PatchManager implements IPatchManager {
|
|||
patchManager.pm.getPatchSerial()
|
||||
);
|
||||
}
|
||||
if (detailedBolusInfo.carbs > 0) {
|
||||
pumpSync.syncCarbsWithTimestamp(
|
||||
detailedBolusInfo.getCarbsTimestamp() != null ? detailedBolusInfo.getCarbsTimestamp() : detailedBolusInfo.timestamp,
|
||||
detailedBolusInfo.carbs,
|
||||
null,
|
||||
PumpType.USER,
|
||||
patchManager.pm.getPatchSerial()
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in a new issue