Merge pull request #1825 from andyrozman/bug1768_2xbolus
Bug1768 2xbolus
This commit is contained in:
commit
db5d832fd2
2 changed files with 5 additions and 2 deletions
|
@ -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
|
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue