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/Jt600ProtocolDecoder.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/Jt600ProtocolDecoder.java')
-rw-r--r-- | src/org/traccar/protocol/Jt600ProtocolDecoder.java | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/org/traccar/protocol/Jt600ProtocolDecoder.java b/src/org/traccar/protocol/Jt600ProtocolDecoder.java index b730c2feb..e632b32d8 100644 --- a/src/org/traccar/protocol/Jt600ProtocolDecoder.java +++ b/src/org/traccar/protocol/Jt600ProtocolDecoder.java @@ -110,12 +110,8 @@ public class Jt600ProtocolDecoder extends BaseProtocolDecoder { position.set(Position.KEY_BATTERY, battery + "%"); } - int cid = buf.readUnsignedShort(); - int lac = buf.readUnsignedShort(); - int rssi = buf.readUnsignedByte(); - - CellTower cellTower = CellTower.fromCidLac(cid, lac); - cellTower.setSignalStrength(rssi); + CellTower cellTower = CellTower.fromCidLac(buf.readUnsignedShort(), buf.readUnsignedShort()); + cellTower.setSignalStrength((int) buf.readUnsignedByte()); position.setNetwork(new Network(cellTower)); position.set(Position.KEY_INDEX, buf.readUnsignedByte()); |