Explorar el Código

heartbeat if no new glucose

Ivan Valkou hace 5 años
padre
commit
b26bc6cd55
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2 0
      FreeAPS/Sources/APS/GlucoseManager.swift

+ 2 - 0
FreeAPS/Sources/APS/GlucoseManager.swift

@@ -36,6 +36,8 @@ final class BaseGlucoseManager: GlucoseManager, Injectable {
                 if !filtered.isEmpty {
                     debug(.nightscout, "New glucose found")
                     self.apsManager.heartbeat(force: true)
+                } else {
+                    self.apsManager.heartbeat(force: false)
                 }
             }
             .store(in: &lifetime)