From 2276cfdcf4c2cedf5bef33ca0a68446b70aacb33 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Wed, 16 Jan 2013 22:15:14 +1300 Subject: Another progress fix --- src/org/traccar/protocol/ProgressProtocolDecoder.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/org/traccar/protocol/ProgressProtocolDecoder.java') diff --git a/src/org/traccar/protocol/ProgressProtocolDecoder.java b/src/org/traccar/protocol/ProgressProtocolDecoder.java index 525aff49e..d3f582225 100644 --- a/src/org/traccar/protocol/ProgressProtocolDecoder.java +++ b/src/org/traccar/protocol/ProgressProtocolDecoder.java @@ -65,7 +65,7 @@ public class ProgressProtocolDecoder extends BaseProtocolDecoder { /** * Hack to load last index from database */ - /*private void loadLastIndex() { + private void loadLastIndex() { try { Properties p = getServerManager().getProperties(); AdvancedConnection connection = new AdvancedConnection( @@ -79,7 +79,7 @@ public class ProgressProtocolDecoder extends BaseProtocolDecoder { } } catch(Exception error) { } - }*/ + } /** * Request archive messages @@ -127,7 +127,7 @@ public class ProgressProtocolDecoder extends BaseProtocolDecoder { } // Position - else if (/*deviceId != 0 &&*/ (type == MSG_POINT || type == MSG_ALARM || type == MSG_LOGMSG)) { + else if (deviceId != 0 && (type == MSG_POINT || type == MSG_ALARM || type == MSG_LOGMSG)) { List positions = new LinkedList(); int recordCount = 1; -- cgit v1.2.3