aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/org/traccar/protocol/Gps103ProtocolDecoder.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/org/traccar/protocol/Gps103ProtocolDecoder.java b/src/org/traccar/protocol/Gps103ProtocolDecoder.java
index 8980c702f..747b5e0bd 100644
--- a/src/org/traccar/protocol/Gps103ProtocolDecoder.java
+++ b/src/org/traccar/protocol/Gps103ProtocolDecoder.java
@@ -96,12 +96,12 @@ public class Gps103ProtocolDecoder extends BaseProtocolDecoder {
// Get device by IMEI
String imei = parser.group(index++);
- try {
+ /*try {
position.setDeviceId(getDataManager().getDeviceByImei(imei).getId());
} catch(Exception error) {
Log.warning("Unknown device - " + imei);
return null;
- }
+ }*/
// Alarm message
extendedInfo.append("<alarm>");
@@ -134,7 +134,7 @@ public class Gps103ProtocolDecoder extends BaseProtocolDecoder {
} else if (deltaMinutes > 12) {
deltaMinutes -= 24 * 60;
}
- time.add(Calendar.MINUTE, deltaMinutes);
+ time.add(Calendar.MINUTE, -deltaMinutes);
position.setTime(time.getTime());
// Validity