aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2017-07-19 01:14:39 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2017-07-19 01:14:39 +1200
commit4f773f445e8d6e6fcc4ec030ca9c8b6b1e7c521d (patch)
treea2c01faca3349d85c4c57130e3fc40de4c79676e /src/org/traccar
parenta7c2aa4a3faddb007a82523b2119134eaa45bea7 (diff)
downloadtrackermap-server-4f773f445e8d6e6fcc4ec030ca9c8b6b1e7c521d.tar.gz
trackermap-server-4f773f445e8d6e6fcc4ec030ca9c8b6b1e7c521d.tar.bz2
trackermap-server-4f773f445e8d6e6fcc4ec030ca9c8b6b1e7c521d.zip
Save GPS103 unhandled events
Diffstat (limited to 'src/org/traccar')
-rw-r--r--src/org/traccar/protocol/Gps103ProtocolDecoder.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/Gps103ProtocolDecoder.java b/src/org/traccar/protocol/Gps103ProtocolDecoder.java
index a9a72b110..099047aa0 100644
--- a/src/org/traccar/protocol/Gps103ProtocolDecoder.java
+++ b/src/org/traccar/protocol/Gps103ProtocolDecoder.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2012 - 2016 Anton Tananaev (anton@traccar.org)
+ * Copyright 2012 - 2017 Anton Tananaev (anton@traccar.org)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -248,6 +248,8 @@ public class Gps103ProtocolDecoder extends BaseProtocolDecoder {
position.set(Position.PREFIX_TEMP + 1, alarm.substring(2));
} else if (alarm.startsWith("oil ")) {
position.set("oil", alarm.substring(4));
+ } else if (!position.getAttributes().containsKey(Position.KEY_ALARM) && !alarm.equals("tracker")) {
+ position.set(Position.KEY_EVENT, alarm);
}
DateBuilder dateBuilder = new DateBuilder()