diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2021-06-03 21:04:29 -0700 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2021-06-03 21:04:29 -0700 |
commit | 5d317c47b953d9304b2874616a4146648062651a (patch) | |
tree | 8378d785bb2eea5d20d49297044ed04376d35dc3 | |
parent | 60467dccc46dfdd3b32b342ead40652774f96451 (diff) | |
parent | aba0e3c0732046ec92676966dc53e147de11f32d (diff) | |
download | traccar-server-5d317c47b953d9304b2874616a4146648062651a.tar.gz traccar-server-5d317c47b953d9304b2874616a4146648062651a.tar.bz2 traccar-server-5d317c47b953d9304b2874616a4146648062651a.zip |
Merge branch 'jaimzj-master'
-rw-r--r-- | src/main/java/org/traccar/protocol/MictrackProtocolDecoder.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/protocol/MictrackProtocolDecoder.java b/src/main/java/org/traccar/protocol/MictrackProtocolDecoder.java index 029e7d99c..992b5c43a 100644 --- a/src/main/java/org/traccar/protocol/MictrackProtocolDecoder.java +++ b/src/main/java/org/traccar/protocol/MictrackProtocolDecoder.java @@ -176,7 +176,7 @@ public class MictrackProtocolDecoder extends BaseProtocolDecoder { } private Object decodeResult( - Channel channel, SocketAddress remoteAddress, String sentence) throws Exception { + Channel channel, SocketAddress remoteAddress, String sentence) { if (sentence.matches("\\d{15} .+")) { @@ -224,6 +224,7 @@ public class MictrackProtocolDecoder extends BaseProtocolDecoder { Position position = new Position(getProtocolName()); position.setDeviceId(deviceSession.getDeviceId()); + position.set(Position.KEY_TYPE, Integer.parseInt(fragments[1])); switch (fragments[3]) { case "R0": |