aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/CarTrackProtocolDecoder.java
diff options
context:
space:
mode:
author31neKl31n3N4chtmu51k <31neKl31n3N4chtmu51k@gmail.com>2014-05-31 20:58:35 -0300
committer31neKl31n3N4chtmu51k <31neKl31n3N4chtmu51k@gmail.com>2014-05-31 20:58:35 -0300
commitb52c3afd0d05f668592a252e41177f444f681e59 (patch)
treee7c0781571e67b8ca49042fa0247c1f99c43e08e /src/org/traccar/protocol/CarTrackProtocolDecoder.java
parent4d46aa335ad0f1985bf42d6a68904e2c594a50cf (diff)
downloadtrackermap-server-b52c3afd0d05f668592a252e41177f444f681e59.tar.gz
trackermap-server-b52c3afd0d05f668592a252e41177f444f681e59.tar.bz2
trackermap-server-b52c3afd0d05f668592a252e41177f444f681e59.zip
changed required block of information "&Y" to optional since my CarTrack
clone doesn't have this field. It is actually a GT60 clone that sends message in the CarTrack format.
Diffstat (limited to 'src/org/traccar/protocol/CarTrackProtocolDecoder.java')
-rw-r--r--src/org/traccar/protocol/CarTrackProtocolDecoder.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/CarTrackProtocolDecoder.java b/src/org/traccar/protocol/CarTrackProtocolDecoder.java
index 3ab026dd8..559a5ccc1 100644
--- a/src/org/traccar/protocol/CarTrackProtocolDecoder.java
+++ b/src/org/traccar/protocol/CarTrackProtocolDecoder.java
@@ -53,7 +53,7 @@ public class CarTrackProtocolDecoder extends BaseProtocolDecoder {
"\\&C(.*)" + // IO Port Data
"\\&D(.*)" + // Mile Meter Data
"\\&E(.*)" + // Alarm Data
- "\\&Y(.*)"); // AD Input Data
+ "(?:\\&Y)?(.*)"); // AD Input Data
@Override
protected Object decode(