[chronojump] RaceAnalyzer can capture with person height == 0



commit 7685db32b9712ac2c96f3a45767395cbce459bd4
Author: Xavier de Blas <xaviblas gmail com>
Date:   Mon Mar 29 12:24:14 2021 +0200

    RaceAnalyzer can capture with person height == 0

 src/gui/app1/runEncoder.cs | 7 +++++++
 1 file changed, 7 insertions(+)
---
diff --git a/src/gui/app1/runEncoder.cs b/src/gui/app1/runEncoder.cs
index 6503e869..c4a8820b 100644
--- a/src/gui/app1/runEncoder.cs
+++ b/src/gui/app1/runEncoder.cs
@@ -249,12 +249,15 @@ public partial class ChronoJumpWindow
                        return;
                }
 
+               /*
                if(currentPersonSession.Height == 0)
                {
                        new DialogMessage(Constants.MessageTypes.WARNING,
                                        Catalog.GetString("Error, height of the person cannot be 0"));
                        return;
                }
+               allow to do the capture, but after show message: no height
+               */
 
                runEncoderPulseMessage = "";
                runEncoderButtonsSensitive(false);
@@ -1269,6 +1272,10 @@ public partial class ChronoJumpWindow
                                else
                                {
                                        event_execute_label_message.Text = "Saved." + captureEndedMessage;
+                                       if(currentPersonSession.Height == 0)
+                                               event_execute_label_message.Text += " " + "Person height is 
0!";
+                                       if(runEncoderCaptureSimulated)
+                                               event_execute_label_message.Text += " SIMULATED TEST!";
 
                                        currentRunEncoder = new RunEncoder(-1, currentPerson.UniqueID, 
currentSession.UniqueID,
                                                        currentRunEncoderExercise.UniqueID, 
raceEncoderGetDevice(),


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