aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/protocol/RadarProtocolDecoder.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2020-09-12 11:29:01 -0700
committerAnton Tananaev <anton.tananaev@gmail.com>2020-09-12 11:29:01 -0700
commit50fb8ee8347481abec7aeb5431426ef12dfb0617 (patch)
treef3ee69a97de7c979ae2948e8a0defc6946a5fbaa /src/main/java/org/traccar/protocol/RadarProtocolDecoder.java
parentdbcde8aee59ebaa488cf9730a0356817e282ee84 (diff)
downloadtrackermap-server-50fb8ee8347481abec7aeb5431426ef12dfb0617.tar.gz
trackermap-server-50fb8ee8347481abec7aeb5431426ef12dfb0617.tar.bz2
trackermap-server-50fb8ee8347481abec7aeb5431426ef12dfb0617.zip
Test for device id
Diffstat (limited to 'src/main/java/org/traccar/protocol/RadarProtocolDecoder.java')
-rw-r--r--src/main/java/org/traccar/protocol/RadarProtocolDecoder.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/protocol/RadarProtocolDecoder.java b/src/main/java/org/traccar/protocol/RadarProtocolDecoder.java
index b56a081c7..d87f77b84 100644
--- a/src/main/java/org/traccar/protocol/RadarProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/RadarProtocolDecoder.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2019 Anton Tananaev (anton@traccar.org)
+ * Copyright 2019 - 2020 Anton Tananaev (anton@traccar.org)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -70,6 +70,7 @@ public class RadarProtocolDecoder extends BaseProtocolDecoder {
for (int index = 0; index < count; index++) {
Position position = new Position(getProtocolName());
+ position.setDeviceId(deviceSession.getDeviceId());
position.set(Position.KEY_EVENT, buf.readUnsignedShort());