aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2020-07-13 22:36:00 -0700
committerAnton Tananaev <anton.tananaev@gmail.com>2020-07-13 22:36:00 -0700
commit47c35e66193d1dda4db5c326c9d39709aee3e2a6 (patch)
treeb838e31a36422ffcfdac12b10cf2e07d55288bc7 /src/main/java
parentef52b738c452023472e00ef2aea75822777c5a9d (diff)
downloadtrackermap-server-47c35e66193d1dda4db5c326c9d39709aee3e2a6.tar.gz
trackermap-server-47c35e66193d1dda4db5c326c9d39709aee3e2a6.tar.bz2
trackermap-server-47c35e66193d1dda4db5c326c9d39709aee3e2a6.zip
Handle negative altitude
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/org/traccar/protocol/WatchProtocolDecoder.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/org/traccar/protocol/WatchProtocolDecoder.java b/src/main/java/org/traccar/protocol/WatchProtocolDecoder.java
index 9b2bc33bf..c5431be8d 100644
--- a/src/main/java/org/traccar/protocol/WatchProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/WatchProtocolDecoder.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2015 - 2018 Anton Tananaev (anton@traccar.org)
+ * Copyright 2015 - 2020 Anton Tananaev (anton@traccar.org)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -57,7 +57,7 @@ public class WatchProtocolDecoder extends BaseProtocolDecoder {
.expression("([EW])?,")
.number("(d+.?d*),") // speed
.number("(d+.?d*),") // course
- .number("(d+.?d*),") // altitude
+ .number("(-?d+.?d*),") // altitude
.number("(d+),") // satellites
.number("(d+),") // rssi
.number("(d+),") // battery