diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2017-09-20 05:57:33 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2017-09-20 14:58:33 +1200 |
commit | 849878cf105baed2348c605f7232012efb294480 (patch) | |
tree | f6092fe3bb0f435349e147688a873513d5289637 /src/org/traccar | |
parent | 6a40551d0e1d63fbb68f0401be73a4c64db4ca64 (diff) | |
download | traccar-server-849878cf105baed2348c605f7232012efb294480.tar.gz traccar-server-849878cf105baed2348c605f7232012efb294480.tar.bz2 traccar-server-849878cf105baed2348c605f7232012efb294480.zip |
Add genx format setter
Diffstat (limited to 'src/org/traccar')
-rw-r--r-- | src/org/traccar/protocol/GenxProtocolDecoder.java | 6 |
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]); |