[chronojump] Networks: Fixed not RFID capturing after end of countdown of AdminID



commit 391790cf681ddc19f4c7dd060c761165f31b2aff
Author: Xavier de Blas <xaviblas gmail com>
Date:   Tue Dec 21 16:14:05 2021 +0100

    Networks: Fixed not RFID capturing after end of countdown of AdminID

 src/RFID.cs         | 5 +++++
 src/gui/networks.cs | 3 ++-
 2 files changed, 7 insertions(+), 1 deletion(-)
---
diff --git a/src/RFID.cs b/src/RFID.cs
index 6bceef215..27fb1be91 100644
--- a/src/RFID.cs
+++ b/src/RFID.cs
@@ -144,6 +144,11 @@ public class RFID
                waitingAdmin = true;
                this.adminRFID = adminRFID;
        }
+       //used when time passed to have waitingAdmin as false. If this is not done, it will not capture other 
rfids.
+       public void WaitingAdminStop()
+       {
+               waitingAdmin = false;
+       }
 
        //reset lastRFID in order to be able to use that RFID after capture (if same wristband is used again)
        public void ResetLastRFID()
diff --git a/src/gui/networks.cs b/src/gui/networks.cs
index 3c72217b0..f1e0d99d6 100644
--- a/src/gui/networks.cs
+++ b/src/gui/networks.cs
@@ -601,7 +601,7 @@ public partial class ChronoJumpWindow
                }
                else if (needManageCompujumpCapturingReset) {
                        //reset lastRFID in order to be able to use that RFID after capture (if same 
wristband is used again)
-                       rfid.ResetLastRFID();
+                       rfid.ResetLastRFID(); //maybe rfid has to be static or ensure this is done in the 
other thread
                        needManageCompujumpCapturingReset = false;
                }
 
@@ -634,6 +634,7 @@ public partial class ChronoJumpWindow
                                        rfidWaitingAdminGuiObjects = new RFIDWaitingAdminGuiObjects();
                                        label_rfid_encoder_wait.Text = "";
                                        label_rfid_encoder_wait.Visible = false;
+                                       rfid.WaitingAdminStop(); //maybe rfid has to be static or ensure this 
is done in the other thread
                                }
                                Thread.Sleep (100);
                                return true;


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