ソースを参照

Fix Calibration issue first start

Fix the issue #92  by removing the sync process queue (seems not useful).
Pierre L 2 年 前
コミット
4a0e6dc3f8
1 ファイル変更4 行追加5 行削除
  1. 4 5
      FreeAPS/Sources/APS/FetchGlucoseManager.swift

+ 4 - 5
FreeAPS/Sources/APS/FetchGlucoseManager.swift

@@ -297,12 +297,11 @@ final class BaseFetchGlucoseManager: FetchGlucoseManager, Injectable {
     private func overcalibrate(entries: [BloodGlucose]) -> [BloodGlucose] {
         // overcalibrate
         var overcalibration: ((Int) -> (Double))?
-        processQueue.sync {
-            if let cal = calibrationService {
-                overcalibration = cal.calibrate
-            }
+       
+        if let cal = calibrationService {
+            overcalibration = cal.calibrate
         }
-
+       
         if let overcalibration = overcalibration {
             return entries.map { entry in
                 var entry = entry