diff options
author | Anton Tananaev <atananaev@lyft.com> | 2020-12-30 10:36:50 -0800 |
---|---|---|
committer | Anton Tananaev <atananaev@lyft.com> | 2020-12-30 10:36:50 -0800 |
commit | 6101300ab45882e02e4a0b90d30070cb904378eb (patch) | |
tree | 577cb6467644eb138b110f9cb3cb0656ab1936b1 /src/main/java/org/traccar/protocol/Xt2400ProtocolDecoder.java | |
parent | 31c4daf083e9f4b799d73d4a1ccb9158505aea70 (diff) | |
download | trackermap-server-6101300ab45882e02e4a0b90d30070cb904378eb.tar.gz trackermap-server-6101300ab45882e02e4a0b90d30070cb904378eb.tar.bz2 trackermap-server-6101300ab45882e02e4a0b90d30070cb904378eb.zip |
Migrate more config keys
Diffstat (limited to 'src/main/java/org/traccar/protocol/Xt2400ProtocolDecoder.java')
-rw-r--r-- | src/main/java/org/traccar/protocol/Xt2400ProtocolDecoder.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main/java/org/traccar/protocol/Xt2400ProtocolDecoder.java b/src/main/java/org/traccar/protocol/Xt2400ProtocolDecoder.java index 31a1bbb11..85e8e140f 100644 --- a/src/main/java/org/traccar/protocol/Xt2400ProtocolDecoder.java +++ b/src/main/java/org/traccar/protocol/Xt2400ProtocolDecoder.java @@ -1,5 +1,5 @@ /* - * Copyright 2017 - 2019 Anton Tananaev (anton@traccar.org) + * Copyright 2017 - 2020 Anton Tananaev (anton@traccar.org) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -21,6 +21,7 @@ import org.traccar.BaseProtocolDecoder; import org.traccar.Context; import org.traccar.DeviceSession; import org.traccar.Protocol; +import org.traccar.config.Keys; import org.traccar.helper.DataConverter; import org.traccar.helper.UnitsConverter; import org.traccar.model.Position; @@ -38,7 +39,7 @@ public class Xt2400ProtocolDecoder extends BaseProtocolDecoder { public Xt2400ProtocolDecoder(Protocol protocol) { super(protocol); - String config = Context.getConfig().getString(getProtocolName() + ".config"); + String config = Context.getConfig().getString(Keys.PROTOCOL_CONFIG.withPrefix(getProtocolName())); if (config != null) { setConfig(config); } |