aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2020-02-10 22:45:25 -0800
committerAnton Tananaev <anton.tananaev@gmail.com>2020-02-10 22:45:25 -0800
commit9f074b062271e5e46612ef0149dd8e2269c22222 (patch)
treea7d65e442625af714806bd53a12eb7c48a30daf7 /src/main/java/org/traccar
parentd9d79d6e4900b144a66a3e85fdd78c4b9b0c9bd3 (diff)
downloadtraccar-server-9f074b062271e5e46612ef0149dd8e2269c22222.tar.gz
traccar-server-9f074b062271e5e46612ef0149dd8e2269c22222.tar.bz2
traccar-server-9f074b062271e5e46612ef0149dd8e2269c22222.zip
Revert "Cell info attributes"
This reverts commit eaacf2e1
Diffstat (limited to 'src/main/java/org/traccar')
-rw-r--r--src/main/java/org/traccar/protocol/Gt06ProtocolDecoder.java9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/main/java/org/traccar/protocol/Gt06ProtocolDecoder.java b/src/main/java/org/traccar/protocol/Gt06ProtocolDecoder.java
index 6f4f9f75e..946652b03 100644
--- a/src/main/java/org/traccar/protocol/Gt06ProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/Gt06ProtocolDecoder.java
@@ -259,16 +259,9 @@ public class Gt06ProtocolDecoder extends BaseProtocolDecoder {
int mcc = buf.readUnsignedShort();
int mnc = BitUtil.check(mcc, 15) ? buf.readUnsignedShort() : buf.readUnsignedByte();
- int lac = buf.readUnsignedShort();
- int cid = buf.readUnsignedMedium();
-
- position.set("mcc", mcc);
- position.set("mnc", mnc);
- position.set("lac", lac);
- position.set("cid", cid);
position.setNetwork(new Network(CellTower.from(
- BitUtil.to(mcc, 15), mnc, lac, cid)));
+ BitUtil.to(mcc, 15), mnc, buf.readUnsignedShort(), buf.readUnsignedMedium())));
if (length > 9) {
buf.skipBytes(length - 9);