Procházet zdrojové kódy

remove the callback in dexcom

avouspierre před 3 roky
rodič
revize
ecc9517f76

+ 1 - 1
FreeAPS/Sources/APS/CGM/AppGroupSource.swift

@@ -21,7 +21,7 @@ struct AppGroupSource: GlucoseSource {
         }
 
         HeartBeatManager.shared.checkCGMBluetoothTransmitter(sharedUserDefaults: sharedDefaults, heartbeat: heartbeat)
-
+        debug(.deviceManager, "APPGROUP : START FETCH LAST BG ")
         let decoded = try? JSONSerialization.jsonObject(with: sharedData, options: [])
         guard let sgvs = decoded as? [AnyObject] else {
             return []

+ 2 - 2
FreeAPS/Sources/APS/CGM/DexcomSource.swift

@@ -76,8 +76,8 @@ extension DexcomSource: CGMManagerDelegate {
     func cgmManager(_ manager: CGMManager, hasNew readingResult: CGMReadingResult) {
         dispatchPrecondition(condition: .onQueue(.main))
         processCGMReadingResult(manager, readingResult: readingResult) {
-            warning(.deviceManager, "DEXCOM - Force the fire of the dispatch timer")
-            self.timer?.fire()
+//            warning(.deviceManager, "DEXCOM - Force the fire of the dispatch timer")
+//            self.timer?.fire()
         }
     }
 

+ 0 - 2
FreeAPS/Sources/APS/CGM/dexcomSourceG7.swift

@@ -71,8 +71,6 @@ extension DexcomSourceG7: CGMManagerDelegate {
     func cgmManager(_ manager: CGMManager, hasNew readingResult: CGMReadingResult) {
         dispatchPrecondition(condition: .onQueue(.main))
         processCGMReadingResult(manager, readingResult: readingResult) {
-            warning(.deviceManager, "DEXCOMG7 - Force the fire of the dispatch timer")
-            self.timer?.fire()
             // self.checkPumpDataAndLoop()
         }
     }