EROS: try to resolve false fake tbr message
This commit is contained in:
parent
0b102376c6
commit
952278a93a
3 changed files with 4 additions and 3 deletions
|
@ -58,7 +58,7 @@ interface PumpSync {
|
||||||
* temporaryBasal (and extendedBolus) is null if there is no record in progress based on data in database
|
* temporaryBasal (and extendedBolus) is null if there is no record in progress based on data in database
|
||||||
* bolus is null when there is no record in database
|
* bolus is null when there is no record in database
|
||||||
*/
|
*/
|
||||||
data class PumpState(val temporaryBasal: TemporaryBasal?, val extendedBolus: ExtendedBolus?, val bolus: Bolus?, val profile: Profile?) {
|
data class PumpState(val temporaryBasal: TemporaryBasal?, val extendedBolus: ExtendedBolus?, val bolus: Bolus?, val profile: Profile?, val serialNumber: String) {
|
||||||
|
|
||||||
data class TemporaryBasal @JvmOverloads constructor(
|
data class TemporaryBasal @JvmOverloads constructor(
|
||||||
val timestamp: Long,
|
val timestamp: Long,
|
||||||
|
|
|
@ -124,7 +124,8 @@ class PumpSyncImplementation @Inject constructor(
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
else null,
|
else null,
|
||||||
profile = profileFunction.getProfile()
|
profile = profileFunction.getProfile(),
|
||||||
|
serialNumber = sp.getString(R.string.key_active_pump_serial_number, "")
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -733,7 +733,7 @@ public class AapsOmnipodErosManager {
|
||||||
PumpSync.TemporaryBasalType.EMULATED_PUMP_SUSPEND,
|
PumpSync.TemporaryBasalType.EMULATED_PUMP_SUSPEND,
|
||||||
pumpId,
|
pumpId,
|
||||||
PumpType.OMNIPOD_EROS,
|
PumpType.OMNIPOD_EROS,
|
||||||
serialNumber()
|
pumpSync.expectedPumpState().getSerialNumber()
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue