diff --git a/HealthMonitor.Service/Resolver/BloodpressResolver.cs b/HealthMonitor.Service/Resolver/BloodpressResolver.cs index fd70290..e71376c 100644 --- a/HealthMonitor.Service/Resolver/BloodpressResolver.cs +++ b/HealthMonitor.Service/Resolver/BloodpressResolver.cs @@ -234,9 +234,18 @@ namespace HealthMonitor.Service.Resolver var lastPushSystolicRefValue = lastPush!.SystolicRefValue; var lastPushDiastolicRefValue = lastPush!.SystolicRefValue; + + + //使用最后一次设备下发校准值作为新的标定值 + systolicRefValue = lastPushSystolicRefValue; + diastolicRefValue = lastPushDiastolicRefValue; + // 测量值当作平均值 systolicAvg = bp.SystolicValue; diastolicAvg = bp.DiastolicValue; + + + systolicInc = (int)((systolicRefValue - systolicAvg) * systolicAvgOffset)!; diastolicInc = (int)((diastolicRefValue - diastolicAvg) * diastolicAvgOffset)!; #region 更新 gps_persoon remarks 下发增量值到iot