aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/Tk103ProtocolDecoder.java
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2016-08-05 10:07:35 +0500
committerAbyss777 <abyss@fox5.ru>2016-08-05 10:07:35 +0500
commit791a010e5a449a27e8243b9bc98c918ffa054eac (patch)
tree7883f58150598323fdae0f8578f607a18958f843 /src/org/traccar/protocol/Tk103ProtocolDecoder.java
parent4ebce65e3d6db55d427f504bd62972370fab2eec (diff)
downloadtrackermap-server-791a010e5a449a27e8243b9bc98c918ffa054eac.tar.gz
trackermap-server-791a010e5a449a27e8243b9bc98c918ffa054eac.tar.bz2
trackermap-server-791a010e5a449a27e8243b9bc98c918ffa054eac.zip
- Removed OIL_CUT
- Renamed guard to armed - Style fixes and optimizations
Diffstat (limited to 'src/org/traccar/protocol/Tk103ProtocolDecoder.java')
-rw-r--r--src/org/traccar/protocol/Tk103ProtocolDecoder.java22
1 files changed, 14 insertions, 8 deletions
diff --git a/src/org/traccar/protocol/Tk103ProtocolDecoder.java b/src/org/traccar/protocol/Tk103ProtocolDecoder.java
index 72ecdc2de..55a41f5a2 100644
--- a/src/org/traccar/protocol/Tk103ProtocolDecoder.java
+++ b/src/org/traccar/protocol/Tk103ProtocolDecoder.java
@@ -77,14 +77,20 @@ public class Tk103ProtocolDecoder extends BaseProtocolDecoder {
private String decodeAlarm(int value) {
switch (value) {
- case 0: return Position.ALARM_OIL_CUT;
- case 1: return Position.ALARM_ACCIDENT;
- case 2: return Position.ALARM_SOS;
- case 3: return Position.ALARM_VIBRATION;
- case 4: return Position.ALARM_LOW_SPEED;
- case 5: return Position.ALARM_OVERSPEED;
- case 6: return Position.ALARM_GEOFENCE_EXIT;
- default: return null;
+ case 1:
+ return Position.ALARM_ACCIDENT;
+ case 2:
+ return Position.ALARM_SOS;
+ case 3:
+ return Position.ALARM_VIBRATION;
+ case 4:
+ return Position.ALARM_LOW_SPEED;
+ case 5:
+ return Position.ALARM_OVERSPEED;
+ case 6:
+ return Position.ALARM_GEOFENCE_EXIT;
+ default:
+ return null;
}
}