[chronojump-server] RFID capture from 's'tard to 'e'nd
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump-server] RFID capture from 's'tard to 'e'nd
- Date: Fri, 26 May 2017 04:53:47 +0000 (UTC)
commit f087e3dd3043aade9faadb90fe6d2618e54baf06
Author: Xavier de Blas <xaviblas gmail com>
Date: Fri May 26 06:51:18 2017 +0200
RFID capture from 's'tard to 'e'nd
chronojump-flask/rfid-csharp/RFID.cs | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/chronojump-flask/rfid-csharp/RFID.cs b/chronojump-flask/rfid-csharp/RFID.cs
index 9169a22..ad74994 100644
--- a/chronojump-flask/rfid-csharp/RFID.cs
+++ b/chronojump-flask/rfid-csharp/RFID.cs
@@ -103,10 +103,10 @@ public class RFID
//Console.WriteLine("Yes one line and trim str" + str);
- //this first line should have a ';' (mark of end of rfid)
- if(str.IndexOf(";") > 0)
+ //this first line should have a 's' and 'e' (mark of 's'tart and 'e'nd of
rfid)
+ if(str.IndexOf('s') == 0 && str[str.Length -1] == 'e')
{
- str = str.Substring(0, str.IndexOf(";"));
+ str = str.Substring(1, str.Length -2);
Console.WriteLine(str);
Captured = str;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]