aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2014-05-30 19:34:50 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2014-05-30 19:34:50 +1200
commit4d46aa335ad0f1985bf42d6a68904e2c594a50cf (patch)
tree96ec01d04abeb6398b1015b53379eb5a0eef5fc0 /src/org/traccar/protocol
parent47f7837e086b3d664ea0ad0f45b2d1d35e5ba301 (diff)
downloadtrackermap-server-4d46aa335ad0f1985bf42d6a68904e2c594a50cf.tar.gz
trackermap-server-4d46aa335ad0f1985bf42d6a68904e2c594a50cf.tar.bz2
trackermap-server-4d46aa335ad0f1985bf42d6a68904e2c594a50cf.zip
Fix Wondex decoder (fix #730)
Diffstat (limited to 'src/org/traccar/protocol')
-rw-r--r--src/org/traccar/protocol/WondexProtocolDecoder.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/org/traccar/protocol/WondexProtocolDecoder.java b/src/org/traccar/protocol/WondexProtocolDecoder.java
index 3ac3eef6b..a9c4ea4c1 100644
--- a/src/org/traccar/protocol/WondexProtocolDecoder.java
+++ b/src/org/traccar/protocol/WondexProtocolDecoder.java
@@ -42,7 +42,7 @@ public class WondexProtocolDecoder extends BaseProtocolDecoder {
"(-?\\d+\\.\\d+)," + // Latitude
"(\\d+)," + // Speed
"(\\d+)," + // Course
- "(-?\\d+)," + // Altitude
+ "(-?\\d+\\.?\\d*)," + // Altitude
"(\\d+)," + // Satellites
"(\\d+),?" + // Event
"(?:(\\d+\\.\\d+)V,)?" + // Battery
@@ -50,7 +50,7 @@ public class WondexProtocolDecoder extends BaseProtocolDecoder {
"(\\d+)?,?" + // Input
"(\\d+\\.\\d+)?,?" + // ADC1
"(\\d+\\.\\d+)?,?" + // ADC2
- "(\\d+)?"); // Output
+ "(\\d+)?.*"); // Output
@Override
protected Object decode(