diff --git a/app/src/main/java/com/eveningoutpost/dexdrip/models/BgReading.java b/app/src/main/java/com/eveningoutpost/dexdrip/models/BgReading.java index b4137dd6b3..03dd57cd00 100644 --- a/app/src/main/java/com/eveningoutpost/dexdrip/models/BgReading.java +++ b/app/src/main/java/com/eveningoutpost/dexdrip/models/BgReading.java @@ -610,7 +610,7 @@ public static BgReading createFromRawNoSave(Sensor sensor, Calibration calibrati Log.d(TAG, "USING CALIBRATION PLUGIN AS PRIMARY!!!"); if (plugin.isCalibrationSane(pcalibration)) { bgReading.calculated_value = (pcalibration.slope * bgReading.age_adjusted_raw_value) + pcalibration.intercept; - bgReading.filtered_calculated_value = (pcalibration.slope * bgReading.ageAdjustedFiltered()) + calibration.intercept; + bgReading.filtered_calculated_value = (pcalibration.slope * bgReading.ageAdjustedFiltered()) + pcalibration.intercept; } else { UserError.Log.wtf(TAG, "Calibration plugin failed intercept sanity check: " + pcalibration.toS()); Home.toaststaticnext("Calibration plugin failed intercept sanity check");