Skip to content

Commit 21127a2

Browse files
authored
Remove ISF unit detection (#494)
1 parent a608efd commit 21127a2

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

LoopFollow/Controllers/Nightscout/DeviceStatusOpenAPS.swift

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,7 @@ extension MainViewController {
3333
let profileISF = profileManager.currentISF()
3434
var enactedISF: HKQuantity?
3535
if let enactedISFValue = enactedOrSuggested["ISF"] as? Double {
36-
var determinedISFUnit: HKUnit = .milligramsPerDeciliter
37-
if enactedISFValue < 16 {
38-
determinedISFUnit = .millimolesPerLiter
39-
}
40-
enactedISF = HKQuantity(unit: determinedISFUnit, doubleValue: enactedISFValue)
36+
enactedISF = HKQuantity(unit: .milligramsPerDeciliter, doubleValue: enactedISFValue)
4137
}
4238
if let profileISF = profileISF, let enactedISF = enactedISF, profileISF != enactedISF {
4339
infoManager.updateInfoData(type: .isf, firstValue: profileISF, secondValue: enactedISF, separator: .arrow)

0 commit comments

Comments
 (0)