Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion Loop/Managers/DeviceDataManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -535,7 +535,18 @@ final class DeviceDataManager {
return nil
}

return pumpManagerTypeByIdentifier(managerIdentifier)
if let pumpManager = pumpManagerTypeByIdentifier(managerIdentifier) {
return pumpManager
}

/// The pumpManager was not found for managerIdentifier. If this was for an "Omnipod" (OmniKit) or
/// "Omnipod-DASH" (OmniBLE), have the universal "Omni" pumpManager (OmnipodKit) handle instead.
let OmniStr = "Omni"
if managerIdentifier.hasPrefix(OmniStr) {
return pumpManagerTypeByIdentifier(OmniStr)
}

return nil
}

func pumpManagerFromRawValue(_ rawValue: [String: Any]) -> PumpManagerUI? {
Expand Down