|
|
@@ -369,6 +369,7 @@ public class PodCommsSession {
|
|
|
podState.updateFromStatusResponse(status, at: currentDate)
|
|
|
if status.podProgressStatus == .basalInitialized {
|
|
|
podState.setupProgress = .initialBasalScheduleSet
|
|
|
+ podState.finalizedDoses.append(UnfinalizedDose(resumeStartTime: currentDate, scheduledCertainty: .certain, insulinType: podState.insulinType))
|
|
|
return
|
|
|
}
|
|
|
}
|
|
|
@@ -880,10 +881,10 @@ public class PodCommsSession {
|
|
|
self.log.default("Recovering from unacknowledged command %{public}@, status = %{public}@", String(describing: pendingCommand), String(describing: status))
|
|
|
|
|
|
if status.lastProgrammingMessageSeqNum == pendingCommand.sequence {
|
|
|
- self.log.debug("Unacknowledged command was received by pump")
|
|
|
+ self.log.default("Unacknowledged command was received by pump")
|
|
|
unacknowledgedCommandWasReceived(pendingCommand: pendingCommand, podStatus: status)
|
|
|
} else {
|
|
|
- self.log.debug("Unacknowledged command was not received by pump")
|
|
|
+ self.log.default("Unacknowledged command was not received by pump")
|
|
|
}
|
|
|
podState.unacknowledgedCommand = nil
|
|
|
}
|