aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2019-09-17 21:57:50 -0700
committerAnton Tananaev <anton.tananaev@gmail.com>2019-09-17 21:57:50 -0700
commita0f246a0cba000e9e8bb12fe6e40ddbc914c2e69 (patch)
treec4d1a2981b6ddc4ff9328866eccdfae0bd6cec3c /src
parent3d2a761f1df457ab5112300aaa410efd2c2cbcf2 (diff)
downloadtrackermap-server-a0f246a0cba000e9e8bb12fe6e40ddbc914c2e69.tar.gz
trackermap-server-a0f246a0cba000e9e8bb12fe6e40ddbc914c2e69.tar.bz2
trackermap-server-a0f246a0cba000e9e8bb12fe6e40ddbc914c2e69.zip
Adjust Gelileo photo decoding
Diffstat (limited to 'src')
-rw-r--r--src/main/java/org/traccar/protocol/GalileoProtocolDecoder.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/org/traccar/protocol/GalileoProtocolDecoder.java b/src/main/java/org/traccar/protocol/GalileoProtocolDecoder.java
index 5b843324c..dfaedd695 100644
--- a/src/main/java/org/traccar/protocol/GalileoProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/GalileoProtocolDecoder.java
@@ -318,7 +318,9 @@ public class GalileoProtocolDecoder extends BaseProtocolDecoder {
buf.readUnsignedByte(); // part number
photo.writeBytes(buf, length - 1);
- } else {
+ sendResponse(channel, 0x07, buf.readUnsignedShortLE());
+
+ } else if (photo != null) {
DeviceSession deviceSession = getDeviceSession(channel, remoteAddress);
String uniqueId = Context.getIdentityManager().getById(deviceSession.getDeviceId()).getUniqueId();
@@ -334,8 +336,6 @@ public class GalileoProtocolDecoder extends BaseProtocolDecoder {
}
- sendResponse(channel, 0x07, buf.readUnsignedShortLE());
-
return position;
}