|
|
@@ -25,7 +25,6 @@ struct FreeAPSSettings: JSON, Equatable {
|
|
|
var useLocalGlucoseSource: Bool = false
|
|
|
var localGlucosePort: Int = 8080
|
|
|
var debugOptions: Bool = false
|
|
|
- var insulinReqPercentage: Decimal = 70
|
|
|
var displayHR: Bool = false
|
|
|
var cgm: CGMType = .none
|
|
|
var cgmPluginIdentifier: String = ""
|
|
|
@@ -65,7 +64,6 @@ struct FreeAPSSettings: JSON, Equatable {
|
|
|
var confirmBolusFaster: Bool = false
|
|
|
var onlyAutotuneBasals: Bool = false
|
|
|
var overrideFactor: Decimal = 0.8
|
|
|
- var useCalc: Bool = true
|
|
|
var fattyMeals: Bool = false
|
|
|
var fattyMealFactor: Decimal = 0.7
|
|
|
var sweetMeals: Bool = false
|
|
|
@@ -118,10 +116,6 @@ extension FreeAPSSettings: Decodable {
|
|
|
settings.debugOptions = debugOptions
|
|
|
}
|
|
|
|
|
|
- if let insulinReqPercentage = try? container.decode(Decimal.self, forKey: .insulinReqPercentage) {
|
|
|
- settings.insulinReqPercentage = insulinReqPercentage
|
|
|
- }
|
|
|
-
|
|
|
if let displayHR = try? container.decode(Bool.self, forKey: .displayHR) {
|
|
|
settings.displayHR = displayHR
|
|
|
// compatibility if displayOnWatch is not available in json files
|
|
|
@@ -176,10 +170,6 @@ extension FreeAPSSettings: Decodable {
|
|
|
settings.individualAdjustmentFactor = individualAdjustmentFactor
|
|
|
}
|
|
|
|
|
|
- if let useCalc = try? container.decode(Bool.self, forKey: .useCalc) {
|
|
|
- settings.useCalc = useCalc
|
|
|
- }
|
|
|
-
|
|
|
if let fattyMeals = try? container.decode(Bool.self, forKey: .fattyMeals) {
|
|
|
settings.fattyMeals = fattyMeals
|
|
|
}
|