Skip to content

Commit

Permalink
lowTTlowersSens fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mountrcg committed May 10, 2024
2 parents 58a1d30 + 0d8c728 commit 1f61db5
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Config.xcconfig
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
APP_DISPLAY_NAME = iAPS
APP_VERSION = 3.6
APP_VERSION = 3.6.1
APP_BUILD_NUMBER = 1
COPYRIGHT_NOTICE = autoISF 3.0
DEVELOPER_TEAM = ##TEAM_ID##
Expand Down
2 changes: 1 addition & 1 deletion FreeAPS/Sources/Models/TempTarget.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ struct TempTarget: JSON, Identifiable, Equatable, Hashable {
let reason: String?

static let manual = "iAPS"
static let custom = "Temp target"
static let custom = "TempTarget"
static let cancel = "Cancel"

var displayName: String {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ extension AddTempTarget {
@Published var presets: [TempTarget] = []
@Published var percentage = 100.0
@Published var maxValue: Decimal = 1.2
@Published var maxValueAS: Decimal = 1.2
@Published var use_autoISF = false
@Published var viewPercantage = false
@Published var hbt: Double = 160
Expand All @@ -29,7 +28,6 @@ extension AddTempTarget {
units = settingsManager.settings.units
presets = storage.presets()
maxValue = settingsManager.preferences.autosensMax
maxValueAS = settingsManager.preferences.autoISFmax
use_autoISF = settingsManager.preferences.autoisf
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -265,9 +265,6 @@ extension AddTempTarget {

func computeSliderHigh() -> Double {
var maxSens = Double(state.maxValue * 100)
if state.use_autoISF {
maxSens = Double(state.maxValueAS * 100)
}
var target = state.low
if target == 0 { return maxSens }
if state.units == .mmolL {
Expand Down
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,11 @@ on iPhone 13 mini:
Watches:

<img src="iAPS_AppleWatch_01.png"
alt="AppleWatch screen"
alt="AppleWatch iAPS"
width=200
/>
<img src="iAPS_AppleWatch_02.png"
alt="AppleWatch watchface"
width=200
/>
<img src="Garmin_DataField.png"
Expand Down
Binary file added iAPS_AppleWatch_02.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 1f61db5

Please sign in to comment.