Browse Source

reintroduce SMB delivery ration in Prefs

Robert 4 năm trước cách đây
mục cha
commit
c39e7188ca

+ 9 - 0
FreeAPS/Sources/Modules/PreferencesEditor/PreferencesEditorStateModel.swift

@@ -421,6 +421,15 @@ extension PreferencesEditor {
                         comment: "SMB Max RangeExtension"
                         comment: "SMB Max RangeExtension"
                     ),
                     ),
                     settable: self
                     settable: self
+                ),
+                Field(
+                    displayName: "SMB DeliveryRatio",
+                    type: .decimal(keypath: \.smbDeliveryRatio),
+                    infoText: NSLocalizedString(
+                        "Default value: 0.5 This is another key OpenAPS safety cap, and specifies what share of the total insulin required can be delivered as SMB. This is to prevent people from getting into dangerous territory by setting SMB requests from the caregivers phone at the same time. Increase this experimental value slowly and with caution.",
+                        comment: "SMB DeliveryRatio"
+                    ),
+                    settable: self
                 )
                 )
             ]
             ]