aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/Xt2400ProtocolDecoder.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2017-03-17 21:33:16 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2017-03-17 21:33:16 +1300
commit73667548d1d83cdfbd6b4a76e0321698cad0fd4b (patch)
tree91b9787852569167e56d6c175c91729fd3240a24 /src/org/traccar/protocol/Xt2400ProtocolDecoder.java
parent556d18eb842e0bdcb568651860c40ad30af27a32 (diff)
downloadtrackermap-server-73667548d1d83cdfbd6b4a76e0321698cad0fd4b.tar.gz
trackermap-server-73667548d1d83cdfbd6b4a76e0321698cad0fd4b.tar.bz2
trackermap-server-73667548d1d83cdfbd6b4a76e0321698cad0fd4b.zip
Load XT2400 format from config
Diffstat (limited to 'src/org/traccar/protocol/Xt2400ProtocolDecoder.java')
-rw-r--r--src/org/traccar/protocol/Xt2400ProtocolDecoder.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/org/traccar/protocol/Xt2400ProtocolDecoder.java b/src/org/traccar/protocol/Xt2400ProtocolDecoder.java
index 76b0b60fe..a42c6175f 100644
--- a/src/org/traccar/protocol/Xt2400ProtocolDecoder.java
+++ b/src/org/traccar/protocol/Xt2400ProtocolDecoder.java
@@ -18,6 +18,7 @@ package org.traccar.protocol;
import org.jboss.netty.buffer.ChannelBuffer;
import org.jboss.netty.channel.Channel;
import org.traccar.BaseProtocolDecoder;
+import org.traccar.Context;
import org.traccar.DeviceSession;
import org.traccar.helper.UnitsConverter;
import org.traccar.model.Position;
@@ -34,6 +35,11 @@ public class Xt2400ProtocolDecoder extends BaseProtocolDecoder {
public Xt2400ProtocolDecoder(Xt2400Protocol protocol) {
super(protocol);
+
+ String config = Context.getConfig().getString(getProtocolName() + ".config");
+ if (config != null) {
+ setConfig(config);
+ }
}
private static final Map<Integer, Integer> TAG_LENGTH_MAP = new HashMap<>();