aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorjcardus <asklocation.net@gmail.com>2021-10-12 01:31:56 +0100
committerjcardus <asklocation.net@gmail.com>2021-10-12 01:31:56 +0100
commitf643887684f3dff65a954fba1ada36e8b81db9d3 (patch)
tree038c3b104fd074f750b22c010b5878c64fdbb9b3 /src/main
parentf9823f2763689ee94645385dcd5e3427ec7255b0 (diff)
downloadtrackermap-server-f643887684f3dff65a954fba1ada36e8b81db9d3.tar.gz
trackermap-server-f643887684f3dff65a954fba1ada36e8b81db9d3.tar.bz2
trackermap-server-f643887684f3dff65a954fba1ada36e8b81db9d3.zip
use key instead of event
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/org/traccar/protocol/MobilogixProtocolDecoder.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/protocol/MobilogixProtocolDecoder.java b/src/main/java/org/traccar/protocol/MobilogixProtocolDecoder.java
index efefaf627..ac75841a4 100644
--- a/src/main/java/org/traccar/protocol/MobilogixProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/MobilogixProtocolDecoder.java
@@ -80,13 +80,13 @@ public class MobilogixProtocolDecoder extends BaseProtocolDecoder {
Position position = new Position(getProtocolName());
- position.set(Position.KEY_EVENT, type);
position.setTime(parser.nextDateTime());
DeviceSession deviceSession = getDeviceSession(channel, remoteAddress, parser.next());
if (deviceSession == null) {
return null;
}
+ position.set(Position.KEY_TYPE, type);
position.setDeviceId(deviceSession.getDeviceId());
int status = parser.nextHexInt();