aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/RaveonProtocolDecoder.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2017-07-08 15:37:30 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2017-07-08 15:37:30 +1200
commitb368eda2a2673fceb304efd4a64f36ca7e5b7b9e (patch)
treee2c3ff76409bf4bb63f23a4de1e24fe92b162b48 /src/org/traccar/protocol/RaveonProtocolDecoder.java
parent731020440991a53034dd2e980add2a08cb9a19de (diff)
downloadtrackermap-server-b368eda2a2673fceb304efd4a64f36ca7e5b7b9e.tar.gz
trackermap-server-b368eda2a2673fceb304efd4a64f36ca7e5b7b9e.tar.bz2
trackermap-server-b368eda2a2673fceb304efd4a64f36ca7e5b7b9e.zip
Add more integration tests
Diffstat (limited to 'src/org/traccar/protocol/RaveonProtocolDecoder.java')
-rw-r--r--src/org/traccar/protocol/RaveonProtocolDecoder.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/org/traccar/protocol/RaveonProtocolDecoder.java b/src/org/traccar/protocol/RaveonProtocolDecoder.java
index 75027246e..cbe6026a2 100644
--- a/src/org/traccar/protocol/RaveonProtocolDecoder.java
+++ b/src/org/traccar/protocol/RaveonProtocolDecoder.java
@@ -63,13 +63,13 @@ public class RaveonProtocolDecoder extends BaseProtocolDecoder {
return null;
}
- Position position = new Position();
- position.setProtocol(getProtocolName());
-
DeviceSession deviceSession = getDeviceSession(channel, remoteAddress, parser.next());
if (deviceSession == null) {
return null;
}
+
+ Position position = new Position();
+ position.setProtocol(getProtocolName());
position.setDeviceId(deviceSession.getDeviceId());
position.setLatitude(parser.nextCoordinate(Parser.CoordinateFormat.HEM_DEG_MIN));