diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2017-02-26 15:12:08 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2017-02-26 15:12:08 +1300 |
commit | 3302d7cf5e7d776da723b811f7daf7a7bd24bb25 (patch) | |
tree | 1cfa8a9394e10aabb7e5f90f9c883a539f309ae1 /src/org/traccar/protocol/AtrackProtocolDecoder.java | |
parent | aea5d9e8df58b37c937db87a272a9d92c64586f5 (diff) | |
download | trackermap-server-3302d7cf5e7d776da723b811f7daf7a7bd24bb25.tar.gz trackermap-server-3302d7cf5e7d776da723b811f7daf7a7bd24bb25.tar.bz2 trackermap-server-3302d7cf5e7d776da723b811f7daf7a7bd24bb25.zip |
Some minor clean up
Diffstat (limited to 'src/org/traccar/protocol/AtrackProtocolDecoder.java')
-rw-r--r-- | src/org/traccar/protocol/AtrackProtocolDecoder.java | 7 |
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; |