aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2021-06-03 21:04:29 -0700
committerAnton Tananaev <anton.tananaev@gmail.com>2021-06-03 21:04:29 -0700
commit5d317c47b953d9304b2874616a4146648062651a (patch)
tree8378d785bb2eea5d20d49297044ed04376d35dc3
parent60467dccc46dfdd3b32b342ead40652774f96451 (diff)
parentaba0e3c0732046ec92676966dc53e147de11f32d (diff)
downloadtraccar-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.java3
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":