You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (currentGlucose.datetime <= state.recentGlucoseDatetime) {
80
-
EversenseLogger.warning(TAG, "Glucose data is still recent after reading - currentReading: ${currentGlucose.datetime}, lastReading: ${state.recentGlucoseDatetime}")
if (glucoseData.datetime <= state.recentGlucoseDatetime) {
81
+
EversenseLogger.warning(TAG, "Glucose data is still recent after reading - currentReading: ${glucoseData.datetime}, lastReading: ${state.recentGlucoseDatetime}")
81
82
return
82
83
}
83
84
84
-
if (currentGlucose.glucoseInMgDl >1000) {
85
-
EversenseLogger.error(TAG, "recentGlucose exceeds range - received: ${currentGlucose.glucoseInMgDl}")
85
+
if (glucoseData.glucoseInMgDl >1000) {
86
+
EversenseLogger.error(TAG, "recentGlucose exceeds range - received: ${glucoseData.glucoseInMgDl}")
86
87
return
87
88
}
88
89
90
+
var currentGlucose = glucoseData.glucoseInMgDl
91
+
if (state.useSmoothing && state.recentGlucoseValue >0&& state.lastGlucoseRaw >0) {
0 commit comments