[chronojump] if runEncoder cannot capture because usb is removed, it exists ok



commit 3c75aef6d790cfd300f64bb1e4090712463a816b
Author: Xavier de Blas <xaviblas gmail com>
Date:   Tue Jul 12 16:13:59 2022 +0200

    if runEncoder cannot capture because usb is removed, it exists ok

 src/gui/app1/runEncoder.cs | 9 +++++++++
 1 file changed, 9 insertions(+)
---
diff --git a/src/gui/app1/runEncoder.cs b/src/gui/app1/runEncoder.cs
index 04dc63394..f8f82b67d 100644
--- a/src/gui/app1/runEncoder.cs
+++ b/src/gui/app1/runEncoder.cs
@@ -616,7 +616,10 @@ public partial class ChronoJumpWindow
 
                if(! portREOpened)
                        if(! runEncoderConnect()) //GTK
+                       {
+                               runEncoderProcessError = true;
                                return;
+                       }
 
                lastChangedTime = 0;
 
@@ -624,11 +627,17 @@ public partial class ChronoJumpWindow
                if(versionDouble >= Convert.ToDouble(Util.ChangeDecimalSeparator("0.3")))
                {
                        if(! runEncoderSendCommand(string.Format("set_pps:{0};", preferences.runEncoderPPS), 
"Sending pps", "Catched at set_pps"))
+                       {
+                               runEncoderProcessError = true;
                                return;
+                       }
 
                        //read confirmation data
                        if(runEncoderReceiveFeedback("pps set to") == "")
+                       {
+                               runEncoderProcessError = true;
                                return;
+                       }
                }
 
                string command = "start_capture:";


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