diff options
Diffstat (limited to 'src/main/java/org')
-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)); } |