From 22fd6a6a2a38de73b0ce053c862bd7221e9c2184 Mon Sep 17 00:00:00 2001 From: Christoph Krey Date: Mon, 12 Nov 2018 10:37:57 +0100 Subject: [FIX] remove debug code --- src/org/traccar/protocol/OwnTracksProtocolDecoder.java | 3 --- 1 file changed, 3 deletions(-) (limited to 'src/org/traccar') 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); -- cgit v1.2.3