Skip to content
Open
Show file tree
Hide file tree
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
4 changes: 2 additions & 2 deletions OmniBLE.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -1552,7 +1552,7 @@
DYLIB_COMPATIBILITY_VERSION = 1;
DYLIB_CURRENT_VERSION = 1;
DYLIB_INSTALL_NAME_BASE = "@rpath";
ENABLE_MODULE_VERIFIER = "$(CLANG_MODULES_ENABLE_VERIFIER_TOOL)";
ENABLE_MODULE_VERIFIER = NO;
FRAMEWORK_SEARCH_PATHS = "";
INFOPLIST_FILE = OmniBLE/Info.plist;
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
Expand Down Expand Up @@ -1592,7 +1592,7 @@
DYLIB_COMPATIBILITY_VERSION = 1;
DYLIB_CURRENT_VERSION = 1;
DYLIB_INSTALL_NAME_BASE = "@rpath";
ENABLE_MODULE_VERIFIER = "$(CLANG_MODULES_ENABLE_VERIFIER_TOOL)";
ENABLE_MODULE_VERIFIER = NO;
FRAMEWORK_SEARCH_PATHS = "";
INFOPLIST_FILE = OmniBLE/Info.plist;
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
Expand Down
4 changes: 2 additions & 2 deletions OmniBLE/PumpManager/OmniBLEPumpManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ extension OmniBLEPumpManagerError: LocalizedError {

public class OmniBLEPumpManager: DeviceManager {

public static let pluginIdentifier: String = "Omnipod-Dash" // use a single token to make parsing log files easier
public let pluginIdentifier: String = "Omnipod-Dash" // use a single token to make parsing log files easier

public let localizedTitle = LocalizedString("Omnipod DASH", comment: "Generic title of the OmniBLE pump manager")

Expand Down Expand Up @@ -355,7 +355,7 @@ extension OmniBLEPumpManager {

switch podCommState(for: state) {
case .fault:
return .active(.distantPast)
return .pumpInoperable
default:
break
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ class OmniBLESettingsViewModel: ObservableObject {
switch basalDeliveryState {
case .active(_), .initiatingTempBasal:
return true
case .tempBasal(_), .cancelingTempBasal, .suspending, .suspended(_), .resuming, .none:
default:
return false
}
}
Expand Down
11 changes: 8 additions & 3 deletions OmniBLE/PumpManagerUI/Views/ExpirationReminderPickerView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,14 @@ struct ExpirationReminderPickerView: View {
}
}
if showingHourPicker {
ResizeablePicker(selection: expirationReminderDefault,
data: Array(Self.expirationReminderHoursAllowed),
formatter: { expirationReminderHourString($0) })
Picker(selection: expirationReminderDefault) {
ForEach(Array(Self.expirationReminderHoursAllowed), id: \.self) { value in
Text(expirationReminderHourString(value))
}
} label: {
EmptyView()
}
.pickerStyle(.wheel)
}
}
}
Expand Down
23 changes: 17 additions & 6 deletions OmniBLE/PumpManagerUI/Views/ManualTempBasalEntryView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -81,12 +81,23 @@ struct ManualTempBasalEntryView: View {
Text(String(format: LocalizedString("%1$@ for %2$@", comment: "Summary string for temporary basal rate configuration page"), formatRate(rateEntered), formatDuration(durationEntered)))
}
HStack {
ResizeablePicker(selection: $rateEntered,
data: allowedRates,
formatter: { formatRate($0) })
ResizeablePicker(selection: $durationEntered,
data: Pod.supportedTempBasalDurations,
formatter: { formatDuration($0) })
Picker(selection: $rateEntered) {
ForEach(allowedRates, id: \.self) { value in
Text(formatRate(value))
}
} label: {
EmptyView()
}
.pickerStyle(.wheel)

Picker(selection: $durationEntered) {
ForEach(Pod.supportedTempBasalDurations, id: \.self) { value in
Text(formatDuration(value))
}
} label: {
EmptyView()
}
.pickerStyle(.wheel)
}
.frame(maxHeight: 162.0)
.alert(isPresented: $showingMissingConfigAlert, content: { missingConfigAlert })
Expand Down