aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/TzoneProtocolDecoder.java
diff options
context:
space:
mode:
authorjon-stumpf <jon.stumpf@gmail.com>2017-03-04 22:42:20 -0500
committerjon-stumpf <jon.stumpf@gmail.com>2017-03-04 22:42:20 -0500
commitf7da653ee14f471cf3d482690e7c659297514ab9 (patch)
tree886e617550b494d32444ac8c2eec155a5b56dbc1 /src/org/traccar/protocol/TzoneProtocolDecoder.java
parent525db3566a9e17f626d34e498c85e02d382d6655 (diff)
downloadtrackermap-server-f7da653ee14f471cf3d482690e7c659297514ab9.tar.gz
trackermap-server-f7da653ee14f471cf3d482690e7c659297514ab9.tar.bz2
trackermap-server-f7da653ee14f471cf3d482690e7c659297514ab9.zip
Removed old comments that have been made redundant, as requested;
Diffstat (limited to 'src/org/traccar/protocol/TzoneProtocolDecoder.java')
-rw-r--r--src/org/traccar/protocol/TzoneProtocolDecoder.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/org/traccar/protocol/TzoneProtocolDecoder.java b/src/org/traccar/protocol/TzoneProtocolDecoder.java
index 7dc158579..69aa916df 100644
--- a/src/org/traccar/protocol/TzoneProtocolDecoder.java
+++ b/src/org/traccar/protocol/TzoneProtocolDecoder.java
@@ -119,8 +119,8 @@ public class TzoneProtocolDecoder extends BaseProtocolDecoder {
if (buf.readUnsignedShort() != 0x2424) {
return null;
}
- int hardware = buf.readUnsignedShort(); // model
- long firmware = buf.readUnsignedInt(); // firmware
+ int hardware = buf.readUnsignedShort();
+ long firmware = buf.readUnsignedInt();
String imei = ChannelBuffers.hexDump(buf.readBytes(8)).substring(1);
DeviceSession deviceSession = getDeviceSession(channel, remoteAddress, imei);
@@ -202,10 +202,10 @@ public class TzoneProtocolDecoder extends BaseProtocolDecoder {
if (blockLength >= 13) {
position.set(Position.KEY_ALARM, decodeAlarm(buf.readUnsignedByte()));
- position.set("terminalInfo", buf.readUnsignedByte()); // terminal info
+ position.set("terminalInfo", buf.readUnsignedByte());
position.set(Position.PREFIX_IO + 1, buf.readUnsignedShort());
position.set(Position.KEY_RSSI, buf.readUnsignedByte());
- position.set("gsmStatus", buf.readUnsignedByte()); // GSM status
+ position.set("gsmStatus", buf.readUnsignedByte());
position.set(Position.KEY_BATTERY, buf.readUnsignedShort());
position.set(Position.KEY_POWER, buf.readUnsignedShort());
position.set(Position.PREFIX_ADC + 1, buf.readUnsignedShort());