diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2019-05-28 06:55:00 -0700 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2019-05-28 06:55:00 -0700 |
commit | 7d07898c52ab0442c78b4d068bf0b3922adc4a70 (patch) | |
tree | f7f273b3ea3f91e3730f60ee9c794c3277012362 /src/main/java | |
parent | 5a35cad42efb1298ff679acf80cbbce169cc4646 (diff) | |
download | trackermap-server-7d07898c52ab0442c78b4d068bf0b3922adc4a70.tar.gz trackermap-server-7d07898c52ab0442c78b4d068bf0b3922adc4a70.tar.bz2 trackermap-server-7d07898c52ab0442c78b4d068bf0b3922adc4a70.zip |
Fix cell decoding
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/org/traccar/protocol/MictrackProtocolDecoder.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/org/traccar/protocol/MictrackProtocolDecoder.java b/src/main/java/org/traccar/protocol/MictrackProtocolDecoder.java index 534937235..60916e4ca 100644 --- a/src/main/java/org/traccar/protocol/MictrackProtocolDecoder.java +++ b/src/main/java/org/traccar/protocol/MictrackProtocolDecoder.java @@ -66,8 +66,8 @@ public class MictrackProtocolDecoder extends BaseProtocolDecoder { int length = values.length % 5 == 0 ? 5 : 4; for (int i = 0; i < values.length / length; i++) { int mnc = Integer.parseInt(values[i * length]); - int lac = Integer.parseInt(values[i * length + 1]); - int cid = Integer.parseInt(values[i * length + 2]); + int cid = Integer.parseInt(values[i * length + 1]); + int lac = Integer.parseInt(values[i * length + 2]); int mcc = Integer.parseInt(values[i * length + 3]); network.addCellTower(CellTower.from(mcc, mnc, lac, cid)); } |