diff options
author | casswarry0 <casswarry0@gmail.com> | 2023-01-18 16:12:40 -0700 |
---|---|---|
committer | casswarry0 <casswarry0@gmail.com> | 2023-01-18 16:12:40 -0700 |
commit | 9a664ae1fc6b564a5b6ddf4923ab3fd54fa23aa3 (patch) | |
tree | b1e871042e1b88589e60e04c7785652b103b0871 /src/main/java | |
parent | 3bf171b207213c21c5f56a59843482aa744bee93 (diff) | |
download | trackermap-server-9a664ae1fc6b564a5b6ddf4923ab3fd54fa23aa3.tar.gz trackermap-server-9a664ae1fc6b564a5b6ddf4923ab3fd54fa23aa3.tar.bz2 trackermap-server-9a664ae1fc6b564a5b6ddf4923ab3fd54fa23aa3.zip |
Removed comments for pull request
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/org/traccar/protocol/EelinkProtocolDecoder.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main/java/org/traccar/protocol/EelinkProtocolDecoder.java b/src/main/java/org/traccar/protocol/EelinkProtocolDecoder.java index 941b10fef..cb0e10042 100644 --- a/src/main/java/org/traccar/protocol/EelinkProtocolDecoder.java +++ b/src/main/java/org/traccar/protocol/EelinkProtocolDecoder.java @@ -270,17 +270,17 @@ public class EelinkProtocolDecoder extends BaseProtocolDecoder { int status = buf.readUnsignedShort(); position.setValid(BitUtil.check(status, 0)); - if (BitUtil.check(status, 1)) { // designed for car + if (BitUtil.check(status, 1)) { position.set(Position.KEY_IGNITION, BitUtil.check(status, 2)); } - if (BitUtil.check(status, 3)) { // accelerometer supported + if (BitUtil.check(status, 3)) { position.set(Position.KEY_ARMED, BitUtil.check(status, 4)); position.set(Position.KEY_MOTION, BitUtil.check(status, 9)); } - if (BitUtil.check(status, 5)) { // relay control supported + if (BitUtil.check(status, 5)) { position.set(Position.KEY_BLOCKED, BitUtil.check(status, 6)); } - if (BitUtil.check(status, 7)) { // external charging supported + if (BitUtil.check(status, 7)) { position.set(Position.KEY_CHARGE, BitUtil.check(status, 8)); } position.set(Position.KEY_GPS, BitUtil.check(status, 10)); |