From 4e2c9492f4b6ba1e0a41c40e1163c7b0dd981639 Mon Sep 17 00:00:00 2001 From: Master Kong Date: Mon, 16 Aug 2021 09:26:33 +0800 Subject: [PATCH] +1 --- VRCHeartRate/VRCHeartRate.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VRCHeartRate/VRCHeartRate.cs b/VRCHeartRate/VRCHeartRate.cs index 4fd9654..8f14189 100644 --- a/VRCHeartRate/VRCHeartRate.cs +++ b/VRCHeartRate/VRCHeartRate.cs @@ -75,7 +75,7 @@ void RecvThreadFun() string message = Encoding.UTF8.GetString(bytRecv, 0, bytRecv.Length); var index = ParamLib.ParamLib.FindParam("HeartRate", VRCExpressionParameters.ValueType.Float); if (index.Item1 != -1) - ParamLib.ParamLib.SetParameter(index.Item1, float.Parse(message) / 200.0f); + ParamLib.ParamLib.SetParameter(index.Item1, (float.Parse(message)+1) / 200.0f); } }