aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/AtrackProtocolDecoder.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/traccar/protocol/AtrackProtocolDecoder.java')
-rw-r--r--src/org/traccar/protocol/AtrackProtocolDecoder.java7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/org/traccar/protocol/AtrackProtocolDecoder.java b/src/org/traccar/protocol/AtrackProtocolDecoder.java
index e2868692e..c4b9d512e 100644
--- a/src/org/traccar/protocol/AtrackProtocolDecoder.java
+++ b/src/org/traccar/protocol/AtrackProtocolDecoder.java
@@ -99,14 +99,13 @@ public class AtrackProtocolDecoder extends BaseProtocolDecoder {
cellTower.setSignalStrength((int) buf.readUnsignedByte());
break;
case "CE":
- cellTower.setCellId(buf.readUnsignedInt()); // cid
+ cellTower.setCellId(buf.readUnsignedInt());
break;
case "LC":
- cellTower.setLocationAreaCode(buf.readUnsignedShort()); // lac
+ cellTower.setLocationAreaCode(buf.readUnsignedShort());
break;
case "CN":
- int combinedMobileCodes; // Decimal: CCCNN
- combinedMobileCodes = (int) (buf.readUnsignedInt() % 100000);
+ int combinedMobileCodes = (int) (buf.readUnsignedInt() % 100000); // cccnn
cellTower.setMobileCountryCode(combinedMobileCodes / 100);
cellTower.setMobileNetworkCode(combinedMobileCodes % 100);
break;