Explorar o código

Buggfix for 'Skip 6 minute alert for dexcom'

Jonas Björkert hai 1 ano
pai
achega
20baafe0b3
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      LoopFollow/Controllers/BackgroundAlertManager.swift

+ 1 - 1
LoopFollow/Controllers/BackgroundAlertManager.swift

@@ -83,7 +83,7 @@ class BackgroundAlertManager {
 
         for alert in alerts {
             // Skip if the expected heartbeat interval matches or exceeds 1.2x the alert time interval
-            if let heartbeat = expectedHeartbeat, heartbeat >= alert.timeInterval * 1.2 {
+            if let heartbeat = expectedHeartbeat, heartbeat * 1.2 >= alert.timeInterval {
                 continue
             }