فهرست منبع

change filter for drawing glucoseDots

Robert 1 سال پیش
والد
کامیت
22890354c7
1فایلهای تغییر یافته به همراه3 افزوده شده و 1 حذف شده
  1. 3 1
      FreeAPS/Sources/Modules/Home/View/Chart/MainChartView.swift

+ 3 - 1
FreeAPS/Sources/Modules/Home/View/Chart/MainChartView.swift

@@ -528,7 +528,9 @@ extension MainChartView {
 
     private func calculateGlucoseDots(fullSize: CGSize) {
         calculationQueue.async {
-            let sgvs = glucose.filter { $0.type == "sgv" }
+            let sgvs = glucose
+                .filter { $0.type != "Manual"
+                } // as fingerpricks will be drawn differently, slightly larger and red - so do not draw them here
             let dots = sgvs.concurrentMap { value -> CGRect in
                 let position = glucoseToCoordinate(value, fullSize: fullSize)
                 return CGRect(x: position.x - 2, y: position.y - 2, width: 4, height: 4)