From 2bf146c30d332aad1eaa856d5db026290e02e089 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Tue, 15 May 2018 02:27:57 +1200 Subject: Update alarm types --- src/org/traccar/model/Position.java | 2 +- src/org/traccar/protocol/Gps103ProtocolDecoder.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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": -- cgit v1.2.3