aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/PricolProtocolDecoder.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/PricolProtocolDecoder.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/PricolProtocolDecoder.java')
-rw-r--r--src/org/traccar/protocol/PricolProtocolDecoder.java14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/org/traccar/protocol/PricolProtocolDecoder.java b/src/org/traccar/protocol/PricolProtocolDecoder.java
index 6d275d4c0..a33e19b90 100644
--- a/src/org/traccar/protocol/PricolProtocolDecoder.java
+++ b/src/org/traccar/protocol/PricolProtocolDecoder.java
@@ -51,11 +51,11 @@ public class PricolProtocolDecoder extends BaseProtocolDecoder {
position.setProtocol(getProtocolName());
position.setDeviceId(deviceSession.getDeviceId());
- position.set("eventType", buf.readUnsignedByte()); // event type
- position.set("packetVersion", buf.readUnsignedByte()); // packet version
- position.set(Position.KEY_STATUS, buf.readUnsignedByte()); // device status
- position.set(Position.KEY_RSSI, buf.readUnsignedByte()); // gsm status
- position.set(Position.KEY_GPS, buf.readUnsignedByte()); // gps status
+ position.set("eventType", buf.readUnsignedByte());
+ position.set("packetVersion", buf.readUnsignedByte());
+ position.set(Position.KEY_STATUS, buf.readUnsignedByte());
+ position.set(Position.KEY_RSSI, buf.readUnsignedByte());
+ position.set(Position.KEY_GPS, buf.readUnsignedByte());
position.setTime(new DateBuilder()
.setDateReverse(buf.readUnsignedByte(), buf.readUnsignedByte(), buf.readUnsignedByte())
@@ -76,8 +76,8 @@ public class PricolProtocolDecoder extends BaseProtocolDecoder {
position.set(Position.KEY_INPUT, buf.readUnsignedShort());
position.set(Position.KEY_OUTPUT, buf.readUnsignedByte());
- position.set("analogAlerts", buf.readUnsignedByte()); // analog alerts
- position.set("customAlertTypes", buf.readUnsignedShort()); // custom alert types
+ position.set("analogAlerts", buf.readUnsignedByte());
+ position.set("customAlertTypes", buf.readUnsignedShort());
for (int i = 1; i <= 5; i++) {
position.set(Position.PREFIX_ADC + i, buf.readUnsignedShort());