aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/org/traccar/protocol/OwnTracksProtocolDecoder.java7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/org/traccar/protocol/OwnTracksProtocolDecoder.java b/src/org/traccar/protocol/OwnTracksProtocolDecoder.java
index 807112d10..c81ebe522 100644
--- a/src/org/traccar/protocol/OwnTracksProtocolDecoder.java
+++ b/src/org/traccar/protocol/OwnTracksProtocolDecoder.java
@@ -14,7 +14,6 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-
package org.traccar.protocol;
import io.netty.channel.Channel;
@@ -114,13 +113,13 @@ public class OwnTracksProtocolDecoder extends BaseHttpProtocolDecoder {
position.setAccuracy(root.getInt("acc"));
}
if (root.containsKey("t")) {
- String t = root.getString("t");
- position.set("t", t);
+ String trigger = root.getString("t");
+ position.set("t", trigger);
Integer rty = -1;
if (root.containsKey("rty")) {
rty = root.getInt("rty");
}
- setEventOrAlarm(position, t, rty);
+ setEventOrAlarm(position, trigger, rty);
}
if (root.containsKey("batt")) {
position.set(Position.KEY_BATTERY_LEVEL, root.getInt("batt"));