[chronojump] Continuing with last commit
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] Continuing with last commit
- Date: Wed, 26 Feb 2020 13:35:27 +0000 (UTC)
commit 47989b277622f21f210f745f208a9cd25961acb7
Author: Xavier de Blas <xaviblas gmail com>
Date: Wed Feb 26 14:34:53 2020 +0100
Continuing with last commit
src/gui/networks.cs | 13 ++++++++-----
1 file changed, 8 insertions(+), 5 deletions(-)
---
diff --git a/src/gui/networks.cs b/src/gui/networks.cs
index 3071000a..584ea3f1 100644
--- a/src/gui/networks.cs
+++ b/src/gui/networks.cs
@@ -111,6 +111,7 @@ public partial class ChronoJumpWindow
private static DateTime startedRFIDWait; //just to display a message at the moment of try to
wristband change while capturing
private bool rfidProcessCancel;
private bool rfidIsDifferent;
+ private bool needManageCompujumpCapturingReset; //useful to manage wristbands while capture
//private bool compujumpAutologout;
//private static CompujumpAutologout compujumpAutologout;
private CompujumpAutologout compujumpAutologout;
@@ -237,6 +238,7 @@ public partial class ChronoJumpWindow
rfidWaitingAdminGuiObjects = new RFIDWaitingAdminGuiObjects();
LogB.Information("networksRI: " + networksRunIntervalCanChangePersonSQLReady.ToString());
+ needManageCompujumpCapturingReset = false;
LogB.Information("RFID Start");
rfid.Start();
}
@@ -256,11 +258,6 @@ public partial class ChronoJumpWindow
{
startedRFIDWait = DateTime.Now;
LogB.Information("... but we are on the middle of capture");
-
- //reset lastRFID in order to be able to use that RFID after capture (if same
wristband is used again)
- //maybe better do this when Capturing ends
- rfid.ResetLastRFID();
-
return;
}
@@ -561,8 +558,14 @@ public partial class ChronoJumpWindow
if(isCompujumpCapturing ()) {
Thread.Sleep (100);
+ needManageCompujumpCapturingReset = true;
return true;
}
+ else if (needManageCompujumpCapturingReset) {
+ //reset lastRFID in order to be able to use that RFID after capture (if same
wristband is used again)
+ rfid.ResetLastRFID();
+ needManageCompujumpCapturingReset = false;
+ }
//---- end of checking if we are on the middle of capture.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]