- added 2 loggings so that we can determine, what is the problem...
This commit is contained in:
parent
14b7895f20
commit
a4be23d5ad
1 changed files with 6 additions and 0 deletions
|
@ -522,6 +522,8 @@ class MedtronicHistoryData @Inject constructor(
|
||||||
if (!multiwave) {
|
if (!multiwave) {
|
||||||
val entryWithTempId = findDbEntry(bolus, boluses)
|
val entryWithTempId = findDbEntry(bolus, boluses)
|
||||||
|
|
||||||
|
aapsLogger.debug(LTag.PUMP, String.format("DD: entryWithTempId=%s", gson.toJson(entryWithTempId)))
|
||||||
|
|
||||||
if (entryWithTempId != null) {
|
if (entryWithTempId != null) {
|
||||||
temporaryId = entryWithTempId.temporaryId
|
temporaryId = entryWithTempId.temporaryId
|
||||||
pumpSyncStorage.removeBolusWithTemporaryId(temporaryId)
|
pumpSyncStorage.removeBolusWithTemporaryId(temporaryId)
|
||||||
|
@ -647,6 +649,10 @@ class MedtronicHistoryData @Inject constructor(
|
||||||
val tbrEntry = tempBasalProcessDTO.itemOne!!.getDecodedDataEntry("Object") as TempBasalPair
|
val tbrEntry = tempBasalProcessDTO.itemOne!!.getDecodedDataEntry("Object") as TempBasalPair
|
||||||
|
|
||||||
if (entryWithTempId!=null) {
|
if (entryWithTempId!=null) {
|
||||||
|
|
||||||
|
aapsLogger.debug(LTag.PUMP, String.format("DD: tempIdEntry=%s, tbrEntry=%s, tempBasalProcessDTO=%s, pumpType=%s, serial=%s",
|
||||||
|
gson.toJson(entryWithTempId), gson.toJson(tbrEntry), gson.toJson(tempBasalProcessDTO), medtronicPumpStatus.pumpType, medtronicPumpStatus.serialNumber!!))
|
||||||
|
|
||||||
val result = pumpSync.syncTemporaryBasalWithTempId(
|
val result = pumpSync.syncTemporaryBasalWithTempId(
|
||||||
tryToGetByLocalTime(tempBasalProcessDTO.atechDateTime),
|
tryToGetByLocalTime(tempBasalProcessDTO.atechDateTime),
|
||||||
tbrEntry.insulinRate,
|
tbrEntry.insulinRate,
|
||||||
|
|
Loading…
Reference in a new issue