Merge pull request #1825 from andyrozman/bug1768_2xbolus

Bug1768 2xbolus
This commit is contained in:
Milos Kozak 2022-06-12 23:53:58 +02:00 committed by GitHub
commit db5d832fd2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

View file

@ -8,4 +8,5 @@ V2 - Rewrite into kotlin, new database (for v3.0)
0002 - some fixes
0003 - SMB fix (798)
0004 - Zero TBR Duration fix (798), refactoring of TempBasalProcessDTO
0005 - fixes to MedtronicHistoryEntry lateinit problem
0005 - fixes to MedtronicHistoryEntry lateinit problem
0006 - when bolus is placed, we adjust detailedBolusInfo with current timestamp

View file

@ -116,7 +116,7 @@ class MedtronicPumpPlugin @Inject constructor(
private var isBusy = false
override fun onStart() {
aapsLogger.debug(LTag.PUMP, deviceID() + " started. (V2.0005)")
aapsLogger.debug(LTag.PUMP, deviceID() + " started. (V2.0006)")
serviceConnection = object : ServiceConnection {
override fun onServiceDisconnected(name: ComponentName) {
aapsLogger.debug(LTag.PUMP, "RileyLinkMedtronicService is disconnected")
@ -640,6 +640,8 @@ class MedtronicPumpPlugin @Inject constructor(
}
val now = System.currentTimeMillis()
detailedBolusInfo.timestamp = now
pumpSyncStorage.addBolusWithTempId(detailedBolusInfo, true, this)
// we subtract insulin, exact amount will be visible with next remainingInsulin update.