aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2017-09-20 05:57:33 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2017-09-20 14:58:33 +1200
commit849878cf105baed2348c605f7232012efb294480 (patch)
treef6092fe3bb0f435349e147688a873513d5289637 /src/org/traccar/protocol
parent6a40551d0e1d63fbb68f0401be73a4c64db4ca64 (diff)
downloadtrackermap-server-849878cf105baed2348c605f7232012efb294480.tar.gz
trackermap-server-849878cf105baed2348c605f7232012efb294480.tar.bz2
trackermap-server-849878cf105baed2348c605f7232012efb294480.zip
Add genx format setter
Diffstat (limited to 'src/org/traccar/protocol')
-rw-r--r--src/org/traccar/protocol/GenxProtocolDecoder.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/GenxProtocolDecoder.java b/src/org/traccar/protocol/GenxProtocolDecoder.java
index 1f9e5512c..3b716796c 100644
--- a/src/org/traccar/protocol/GenxProtocolDecoder.java
+++ b/src/org/traccar/protocol/GenxProtocolDecoder.java
@@ -30,7 +30,11 @@ public class GenxProtocolDecoder extends BaseProtocolDecoder {
public GenxProtocolDecoder(GenxProtocol protocol) {
super(protocol);
- String[] columns = Context.getConfig().getString(getProtocolName() + ".reportColumns", "1,2,3,4").split(",");
+ setReportColumns(Context.getConfig().getString(getProtocolName() + ".reportColumns", "1,2,3,4"));
+ }
+
+ public void setReportColumns(String format) {
+ String[] columns = format.split(",");
reportColumns = new int[columns.length];
for (int i = 0; i < columns.length; i++) {
reportColumns[i] = Integer.parseInt(columns[i]);