aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/OwnTracksProtocolDecoder.java
diff options
context:
space:
mode:
authorChristoph Krey <c@ckrey.de>2018-11-12 10:37:57 +0100
committerChristoph Krey <c@ckrey.de>2018-11-12 10:37:57 +0100
commit22fd6a6a2a38de73b0ce053c862bd7221e9c2184 (patch)
tree9c000abe40f25d29bc82a88df39f35ae5e5c7937 /src/org/traccar/protocol/OwnTracksProtocolDecoder.java
parente9ae3ba883cee96f410c7a9b3495e86d076410aa (diff)
downloadtrackermap-server-22fd6a6a2a38de73b0ce053c862bd7221e9c2184.tar.gz
trackermap-server-22fd6a6a2a38de73b0ce053c862bd7221e9c2184.tar.bz2
trackermap-server-22fd6a6a2a38de73b0ce053c862bd7221e9c2184.zip
[FIX] remove debug code
Diffstat (limited to 'src/org/traccar/protocol/OwnTracksProtocolDecoder.java')
-rw-r--r--src/org/traccar/protocol/OwnTracksProtocolDecoder.java3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/org/traccar/protocol/OwnTracksProtocolDecoder.java b/src/org/traccar/protocol/OwnTracksProtocolDecoder.java
index 5786cf440..807112d10 100644
--- a/src/org/traccar/protocol/OwnTracksProtocolDecoder.java
+++ b/src/org/traccar/protocol/OwnTracksProtocolDecoder.java
@@ -90,7 +90,6 @@ public class OwnTracksProtocolDecoder extends BaseHttpProtocolDecoder {
position.setDeviceId(deviceSession.getDeviceId());
position.setProtocol(getProtocolName());
- //position.set(Position.KEY_ORIGINAL, request.getContent().toString(StandardCharsets.US_ASCII));
position.setTime(new Date(root.getJsonNumber("tst").longValue() * 1000));
if (root.containsKey("sent")) {
@@ -180,10 +179,8 @@ public class OwnTracksProtocolDecoder extends BaseHttpProtocolDecoder {
position.set(Position.KEY_EVENT, Event.TYPE_ALARM);
position.set(Position.KEY_ALARM, Position.ALARM_POWER_ON);
} else if (t.equals("i")) {
- //position.set(Position.KEY_EVENT, Event.TYPE_IGNITION_ON);
position.set(Position.KEY_IGNITION, true);
} else if (t.equals("I")) {
- //position.set(Position.KEY_EVENT, Event.TYPE_IGNITION_OFF);
position.set(Position.KEY_IGNITION, false);
} else if (t.equals("E")) {
position.set(Position.KEY_EVENT, Event.TYPE_ALARM);