Explorar el Código

reportEnacted only in closed loop

Ivan Valkou hace 4 años
padre
commit
5b0138e6ba
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. 3 1
      FreeAPS/Sources/APS/APSManager.swift

+ 3 - 1
FreeAPS/Sources/APS/APSManager.swift

@@ -194,7 +194,9 @@ final class BaseAPSManager: APSManager, Injectable {
             lastError.send(nil)
         }
 
-        reportEnacted(received: error == nil)
+        if settings.closedLoop {
+            reportEnacted(received: error == nil)
+        }
     }
 
     private func verifyStatus() -> Error? {