[chronojump] Fixed (NEED TO TEST) encoder recalibrate on windows
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] Fixed (NEED TO TEST) encoder recalibrate on windows
- Date: Thu, 15 Feb 2018 16:32:26 +0000 (UTC)
commit 5bc0747801f5b50d092f70e863a2611d38c4d159
Author: Xavier de Blas <xaviblas gmail com>
Date: Thu Feb 15 17:32:00 2018 +0100
Fixed (NEED TO TEST) encoder recalibrate on windows
src/gui/encoder.cs | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/src/gui/encoder.cs b/src/gui/encoder.cs
index cd83264..1606fd9 100644
--- a/src/gui/encoder.cs
+++ b/src/gui/encoder.cs
@@ -700,7 +700,11 @@ public partial class ChronoJumpWindow
EncoderCaptureInertialBackground eCaptureInertialBG; //only created one time
void on_button_encoder_inertial_calibrate_clicked (object o, EventArgs args)
{
- if(! canCaptureEncoder())
+ /*
+ * only call canCaptureEncoder() if we are not capturing in the background
+ * this avoids problems with recalibrate on windows (port gets missing)
+ */
+ if( (encoderThreadBG == null || ! encoderThreadBG.IsAlive) && ! canCaptureEncoder() )
return;
//allow show the recalibrate button
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]