prevent failed requirement
This commit is contained in:
parent
22670943be
commit
b370333071
|
@ -641,7 +641,7 @@ class MedtronicHistoryData @Inject constructor(
|
|||
"pumpSerial=${medtronicPumpStatus.serialNumber}]")
|
||||
|
||||
|
||||
if (tempBasalProcessDTO.durationAsSeconds == 0) {
|
||||
if (tempBasalProcessDTO.durationAsSeconds <= 0) {
|
||||
rxBus.send(EventNewNotification(Notification(Notification.MDT_INVALID_HISTORY_DATA, rh.gs(R.string.invalid_history_data), Notification.URGENT)))
|
||||
aapsLogger.debug(LTag.PUMP, "syncTemporaryBasalWithPumpId - Skipped")
|
||||
} else {
|
||||
|
@ -682,7 +682,7 @@ class MedtronicHistoryData @Inject constructor(
|
|||
"pumpId=${tempBasalProcessDTO.pumpId}, rate=${tbrEntry.insulinRate} U, " +
|
||||
"duration=${tempBasalProcessDTO.durationAsSeconds} s, pumpSerial=${medtronicPumpStatus.serialNumber}]")
|
||||
|
||||
if (tempBasalProcessDTO.durationAsSeconds == 0) {
|
||||
if (tempBasalProcessDTO.durationAsSeconds <= 0) {
|
||||
rxBus.send(EventNewNotification(Notification(Notification.MDT_INVALID_HISTORY_DATA, rh.gs(R.string.invalid_history_data), Notification.URGENT)))
|
||||
aapsLogger.debug(LTag.PUMP, "syncTemporaryBasalWithPumpId - Skipped")
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue