Procházet zdrojové kódy

Revert changes in RecBolusCondition.swift

Jonas Björkert před 1 rokem
rodič
revize
52095e4539

+ 2 - 2
LoopFollow/Alarm/AlarmCondition/RecBolusCondition.swift

@@ -20,10 +20,10 @@ struct RecBolusCondition: AlarmCondition {
         }
 
         // ────────────────────────────────
-        // 1. has it DECREASED past the last-notified value?
+        // 1. has it INCREASED past the last-notified value?
         // ────────────────────────────────
         if let last = Storage.shared.lastRecBolusNotified.value {
-            if rec < last { return false }
+            if rec <= last + 1e-4 { return false }
         }
 
         Storage.shared.lastRecBolusNotified.value = rec