aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/Gl200ProtocolDecoder.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2013-11-09 20:48:39 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2013-11-09 20:48:39 +1300
commitfa260aad4a99772e1b116474dd702849f6ee5727 (patch)
tree2d2f2b79002697177e6f45c006a4737b23e01385 /src/org/traccar/protocol/Gl200ProtocolDecoder.java
parentf65d8164e673c5a1e2aa4d02aee8e269b19c4900 (diff)
downloadtrackermap-server-fa260aad4a99772e1b116474dd702849f6ee5727.tar.gz
trackermap-server-fa260aad4a99772e1b116474dd702849f6ee5727.tar.bz2
trackermap-server-fa260aad4a99772e1b116474dd702849f6ee5727.zip
Update gl100 and gl200
Diffstat (limited to 'src/org/traccar/protocol/Gl200ProtocolDecoder.java')
-rw-r--r--src/org/traccar/protocol/Gl200ProtocolDecoder.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/org/traccar/protocol/Gl200ProtocolDecoder.java b/src/org/traccar/protocol/Gl200ProtocolDecoder.java
index 8f3579d38..f1101bde4 100644
--- a/src/org/traccar/protocol/Gl200ProtocolDecoder.java
+++ b/src/org/traccar/protocol/Gl200ProtocolDecoder.java
@@ -33,7 +33,7 @@ public class Gl200ProtocolDecoder extends BaseProtocolDecoder {
super(serverManager);
}
- static private Pattern pattern = Pattern.compile(
+ private static final Pattern pattern = Pattern.compile(
"\\+RESP:GT...," +
"[0-9a-fA-F]{6}," + // Protocol version
"(\\d{15}),.*," + // IMEI
@@ -76,7 +76,7 @@ public class Gl200ProtocolDecoder extends BaseProtocolDecoder {
}
// Validity
- position.setValid(Integer.valueOf(parser.group(index++)) == 0 ? false : true);
+ position.setValid(Integer.valueOf(parser.group(index++)) == 0);
// Position info
position.setSpeed(Double.valueOf(parser.group(index++)));