diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2017-06-04 09:48:38 -0700 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2017-06-04 09:48:51 -0700 |
commit | 0d5b1440503ee50127554e0664b0ae7cbf9a25fd (patch) | |
tree | b9d2045cda946dc31be67cb00ef376e45806b35a /src/org/traccar/protocol | |
parent | 40cb222dddfe3c0acdf6043617e00d7deaa4646c (diff) | |
download | trackermap-server-0d5b1440503ee50127554e0664b0ae7cbf9a25fd.tar.gz trackermap-server-0d5b1440503ee50127554e0664b0ae7cbf9a25fd.tar.bz2 trackermap-server-0d5b1440503ee50127554e0664b0ae7cbf9a25fd.zip |
Fix MU-201 message decoding (fix #3220)
Diffstat (limited to 'src/org/traccar/protocol')
-rw-r--r-- | src/org/traccar/protocol/SanavProtocolDecoder.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/org/traccar/protocol/SanavProtocolDecoder.java b/src/org/traccar/protocol/SanavProtocolDecoder.java index c736b2ba3..151c55795 100644 --- a/src/org/traccar/protocol/SanavProtocolDecoder.java +++ b/src/org/traccar/protocol/SanavProtocolDecoder.java @@ -38,7 +38,7 @@ public class SanavProtocolDecoder extends BaseProtocolDecoder { .number("(d+)") // imei .expression("&?rmc[:=]") .text("$GPRMC,") - .number("(dd)(dd)(dd).(ddd),") // time (hhmmss.sss) + .number("(dd)(dd)(dd).d+,") // time (hhmmss.sss) .expression("([AV]),") // validity .number("(d+)(dd.d+),") // latitude .expression("([NS]),") @@ -69,7 +69,7 @@ public class SanavProtocolDecoder extends BaseProtocolDecoder { position.setDeviceId(deviceSession.getDeviceId()); DateBuilder dateBuilder = new DateBuilder() - .setTime(parser.nextInt(0), parser.nextInt(0), parser.nextInt(0), parser.nextInt(0)); + .setTime(parser.nextInt(0), parser.nextInt(0), parser.nextInt(0)); position.setValid(parser.next().equals("A")); position.setLatitude(parser.nextCoordinate()); |