Skip to content

Commit 5628aae

Browse files
authored
[LOOP-4801] adding pump inoperable (#8)
* adding pump inoperable * fault return pumpInoperable
1 parent b8db47c commit 5628aae

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

OmniKit/PumpManager/OmnipodPumpManager.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,7 @@ extension OmnipodPumpManager {
490490

491491
switch podCommState(for: state) {
492492
case .fault:
493-
return .active(.distantPast)
493+
return .pumpInoperable
494494
default:
495495
break
496496
}

OmniKitUI/ViewModels/OmnipodSettingsViewModel.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ class OmnipodSettingsViewModel: ObservableObject {
159159
switch basalDeliveryState {
160160
case .active(_), .initiatingTempBasal:
161161
return true
162-
case .tempBasal(_), .cancelingTempBasal, .suspending, .suspended(_), .resuming, .none:
162+
default:
163163
return false
164164
}
165165
}

0 commit comments

Comments
 (0)