aboutsummaryrefslogtreecommitdiff
path: root/src/org
diff options
context:
space:
mode:
authorIrving Gonzalez <ialexis93@gmail.com>2015-07-27 21:57:11 -0600
committerIrving Gonzalez <ialexis93@gmail.com>2015-07-27 21:57:11 -0600
commitc4f6471ee18b97130e85efd488b5d102a1935366 (patch)
tree946ae514f8669c78b748b2ee54fc9e8c1ef144ac /src/org
parentd6c53e951c5cdb4e03a30705f4f922b9b37fd7a6 (diff)
parente4248b9acf6caac111c881bc9a05bbfc58d2d0a1 (diff)
downloadtraccar-server-c4f6471ee18b97130e85efd488b5d102a1935366.tar.gz
traccar-server-c4f6471ee18b97130e85efd488b5d102a1935366.tar.bz2
traccar-server-c4f6471ee18b97130e85efd488b5d102a1935366.zip
Merge branch 'master' of https://github.com/tananaev/traccar
Diffstat (limited to 'src/org')
-rw-r--r--src/org/traccar/protocol/H02ProtocolDecoder.java2
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);