Просмотр исходного кода

Libre 2 fix for false high BG.

Jon Mårtensson 4 лет назад
Родитель
Сommit
5baceebffd
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      Dependencies/LibreTransmitter/Sources/LibreTransmitter/LibreGlucose.swift

+ 1 - 1
Dependencies/LibreTransmitter/Sources/LibreTransmitter/LibreGlucose.swift

@@ -196,7 +196,7 @@ extension LibreGlucose {
                 timestamp: trend.date)
                 timestamp: trend.date)
             // if sensor is ripped off body while transmitter is attached, values below 1 might be created
             // if sensor is ripped off body while transmitter is attached, values below 1 might be created
 
 
-            if glucose.unsmoothedGlucose > 0 {
+            if glucose.unsmoothedGlucose > 0 && glucose.unsmoothedGlucose <= 500 {
                 arr.append(glucose)
                 arr.append(glucose)
             }
             }