aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-11-08 22:38:11 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2015-11-08 22:38:11 +1300
commitf727af19cb994517ca3685239e506ff6beeaaa76 (patch)
tree9982219ba18de0d6f1b0ca0bb209bd0d34110a14 /src/org/traccar/protocol
parent3fa63631e2cb0c59aa2aa490a4ed742dd7153a8b (diff)
downloadtraccar-server-f727af19cb994517ca3685239e506ff6beeaaa76.tar.gz
traccar-server-f727af19cb994517ca3685239e506ff6beeaaa76.tar.bz2
traccar-server-f727af19cb994517ca3685239e506ff6beeaaa76.zip
Set protocol name for all positions
Diffstat (limited to 'src/org/traccar/protocol')
-rw-r--r--src/org/traccar/protocol/GalileoProtocolDecoder.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/GalileoProtocolDecoder.java b/src/org/traccar/protocol/GalileoProtocolDecoder.java
index 7c7de307d..ce8716291 100644
--- a/src/org/traccar/protocol/GalileoProtocolDecoder.java
+++ b/src/org/traccar/protocol/GalileoProtocolDecoder.java
@@ -122,8 +122,8 @@ public class GalileoProtocolDecoder extends BaseProtocolDecoder {
List<Position> positions = new LinkedList<>();
Set<Integer> tags = new HashSet<>();
boolean hasLocation = false;
+
Position position = new Position();
- position.setProtocol(getProtocolName());
while (buf.readerIndex() < length) {
@@ -201,6 +201,7 @@ public class GalileoProtocolDecoder extends BaseProtocolDecoder {
sendReply(channel, buf.readUnsignedShort());
for (Position p : positions) {
+ p.setProtocol(getProtocolName());
p.setDeviceId(getDeviceId());
}