File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
LoopFollow/Controllers/Nightscout Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -103,9 +103,13 @@ extension MainViewController {
103103 if let bolusIncrement = lastPumpRecord [ " bolusIncrement " ] as? Double , bolusIncrement > 0 {
104104 Storage . shared. bolusIncrement. value = HKQuantity ( unit: . internationalUnit( ) , doubleValue: bolusIncrement)
105105 Storage . shared. bolusIncrementDetected. value = true
106- } else if let model = lastPumpRecord [ " model " ] as? String , model == " Dash " {
106+
107+ } else if let model = lastPumpRecord [ " model " ] as? String ,
108+ [ " Dash " , " 723 " , " 722 " ] . contains ( model)
109+ {
107110 Storage . shared. bolusIncrement. value = HKQuantity ( unit: . internationalUnit( ) , doubleValue: 0.05 )
108111 Storage . shared. bolusIncrementDetected. value = true
112+
109113 } else {
110114 Storage . shared. bolusIncrementDetected. value = false
111115 }
You can’t perform that action at this time.
0 commit comments