diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-07-28 14:13:40 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-07-28 14:13:40 +1200 |
commit | 5cfc15ffa2a5ba0ca32a9382a33288ea75fc4da5 (patch) | |
tree | 3fe08adb06359ede229ea25457c4b83ce1be92e5 /src/org/traccar | |
parent | a1b042162c4dd6f3adb1e505dd85e9854a5913f9 (diff) | |
download | trackermap-server-5cfc15ffa2a5ba0ca32a9382a33288ea75fc4da5.tar.gz trackermap-server-5cfc15ffa2a5ba0ca32a9382a33288ea75fc4da5.tar.bz2 trackermap-server-5cfc15ffa2a5ba0ca32a9382a33288ea75fc4da5.zip |
Add H02 power info support
Diffstat (limited to 'src/org/traccar')
-rw-r--r-- | src/org/traccar/protocol/H02ProtocolDecoder.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/H02ProtocolDecoder.java b/src/org/traccar/protocol/H02ProtocolDecoder.java index e3130305b..9b58af854 100644 --- a/src/org/traccar/protocol/H02ProtocolDecoder.java +++ b/src/org/traccar/protocol/H02ProtocolDecoder.java @@ -83,7 +83,7 @@ public class H02ProtocolDecoder extends BaseProtocolDecoder { // Location double latitude = readCoordinate(buf, false); - int x = buf.readByte(); // reserved + position.set(Event.KEY_POWER, buf.readByte()); double longitude = readCoordinate(buf, true); int flags = buf.readUnsignedByte() & 0x0f; position.setValid((flags & 0x02) != 0); |