diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2018-05-15 02:27:57 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2018-05-15 02:27:57 +1200 |
commit | 2bf146c30d332aad1eaa856d5db026290e02e089 (patch) | |
tree | 6d5c825fcfb0e2068506eb682012d34f1f8f8d5a /src | |
parent | bb0d6eef1870454673cffbcd9b27d0381aaf21ff (diff) | |
download | trackermap-server-2bf146c30d332aad1eaa856d5db026290e02e089.tar.gz trackermap-server-2bf146c30d332aad1eaa856d5db026290e02e089.tar.bz2 trackermap-server-2bf146c30d332aad1eaa856d5db026290e02e089.zip |
Update alarm types
Diffstat (limited to 'src')
-rw-r--r-- | src/org/traccar/model/Position.java | 2 | ||||
-rw-r--r-- | src/org/traccar/protocol/Gps103ProtocolDecoder.java | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/org/traccar/model/Position.java b/src/org/traccar/model/Position.java index b0e08244c..5e0d65894 100644 --- a/src/org/traccar/model/Position.java +++ b/src/org/traccar/model/Position.java @@ -130,7 +130,7 @@ public class Position extends Message { public static final String ALARM_SHOCK = "shock"; public static final String ALARM_BONNET = "bonnet"; public static final String ALARM_FOOT_BRAKE = "footBrake"; - public static final String ALARM_OIL_LEAK = "oilLeak"; + public static final String ALARM_FUEL_LEAK = "fuelLeak"; public static final String ALARM_TAMPERING = "tampering"; public static final String ALARM_REMOVING = "removing"; diff --git a/src/org/traccar/protocol/Gps103ProtocolDecoder.java b/src/org/traccar/protocol/Gps103ProtocolDecoder.java index ceb0c5748..43481889a 100644 --- a/src/org/traccar/protocol/Gps103ProtocolDecoder.java +++ b/src/org/traccar/protocol/Gps103ProtocolDecoder.java @@ -101,7 +101,7 @@ public class Gps103ProtocolDecoder extends BaseProtocolDecoder { if (value.startsWith("T:")) { return Position.ALARM_TEMPERATURE; } else if (value.startsWith("oil")) { - return Position.ALARM_OIL_LEAK; + return Position.ALARM_FUEL_LEAK; } switch (value) { case "tracker": |