aboutsummaryrefslogtreecommitdiff
path: root/src/org
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2013-05-20 21:39:50 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2013-05-20 21:39:50 +1200
commitf5d56c4fcc88ec0edb3296b6bb572ff30860abd2 (patch)
tree02a9f10d1bab2f48ca0ff22811498f328368277c /src/org
parent551b941599d95dd8fb26dead74dca44e9e7a2c9b (diff)
downloadtraccar-server-f5d56c4fcc88ec0edb3296b6bb572ff30860abd2.tar.gz
traccar-server-f5d56c4fcc88ec0edb3296b6bb572ff30860abd2.tar.bz2
traccar-server-f5d56c4fcc88ec0edb3296b6bb572ff30860abd2.zip
Add unit tests
Diffstat (limited to 'src/org')
-rw-r--r--src/org/traccar/protocol/H02ProtocolDecoder.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/org/traccar/protocol/H02ProtocolDecoder.java b/src/org/traccar/protocol/H02ProtocolDecoder.java
index 0b6d9e560..ba2e11eae 100644
--- a/src/org/traccar/protocol/H02ProtocolDecoder.java
+++ b/src/org/traccar/protocol/H02ProtocolDecoder.java
@@ -99,6 +99,9 @@ public class H02ProtocolDecoder extends BaseProtocolDecoder {
lonlitude += Double.valueOf(parser.group(index++)) / 60;
if (parser.group(index++).compareTo("W") == 0) lonlitude = -lonlitude;
position.setLongitude(lonlitude);
+
+ // Altitude
+ position.setAltitude(0.0);
// Speed
position.setSpeed(Double.valueOf(parser.group(index++)));