[chronojump/FS-TFT-Menu] Fixed networks get encoder exercises on inertial on 3.1



commit 3f169b924ba7cddbe9350e8f11f9c716f6cfbf5c
Author: Xavier de Blas <xaviblas gmail com>
Date:   Tue Apr 5 12:28:55 2022 +0200

    Fixed networks get encoder exercises on inertial on 3.1

 src/json/compujump.cs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/json/compujump.cs b/src/json/compujump.cs
index 048d35529..00222d769 100644
--- a/src/json/compujump.cs
+++ b/src/json/compujump.cs
@@ -387,7 +387,7 @@ public class JsonCompujump : Json
                                newExPercentBodyMassDisplaced = jsonSE 
["measurable_info"]["percent_body_mass_displaced"];
 
                        double newExSpeedAt1RM = 0;
-                       if(jsonSE ["measurable_info"]["speed_at_one_rm"] != null)
+                       if(type == "G" && jsonSE ["measurable_info"]["speed_at_one_rm"] != null)
                                newExSpeedAt1RM = Convert.ToDouble(Util.ChangeDecimalSeparator(
                                                        jsonSE 
["measurable_info"]["speed_at_one_rm"].ToString() )); //ToString is mandatory
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]