diff options
author | lalamper <lalamper@gmail.com> | 2017-04-20 13:17:04 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-20 13:17:04 +0200 |
commit | 4c720ad7f66c18b0eb9176f9d263eef806cc2bd4 (patch) | |
tree | 692cb43a7082ec023c18726b444a9b082d2d0047 /src/org/traccar | |
parent | 669d33472a3e23f84a873b740e21ddc3499da9f6 (diff) | |
download | traccar-server-4c720ad7f66c18b0eb9176f9d263eef806cc2bd4.tar.gz traccar-server-4c720ad7f66c18b0eb9176f9d263eef806cc2bd4.tar.bz2 traccar-server-4c720ad7f66c18b0eb9176f9d263eef806cc2bd4.zip |
Update MeitrackProtocolDecoder.java
Diffstat (limited to 'src/org/traccar')
-rw-r--r-- | src/org/traccar/protocol/MeitrackProtocolDecoder.java | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/org/traccar/protocol/MeitrackProtocolDecoder.java b/src/org/traccar/protocol/MeitrackProtocolDecoder.java index f4d23a90e..0eb321ff3 100644 --- a/src/org/traccar/protocol/MeitrackProtocolDecoder.java +++ b/src/org/traccar/protocol/MeitrackProtocolDecoder.java @@ -83,7 +83,6 @@ public class MeitrackProtocolDecoder extends BaseProtocolDecoder { .number("xx") .text("\r\n").optional() .compile(); - private String decodeAlarm(int event) { switch (event) { case 1: @@ -91,13 +90,17 @@ public class MeitrackProtocolDecoder extends BaseProtocolDecoder { case 17: return Position.ALARM_LOW_BATTERY; case 18: - return Position.ALARM_POWER_CUT; + return Position.ALARM_LOW_POWER; case 19: return Position.ALARM_OVERSPEED; case 20: return Position.ALARM_GEOFENCE_ENTER; case 21: return Position.ALARM_GEOFENCE_EXIT; + case 22: + return Position.ALARM_POWER_RESTORED; + case 23: + return Position.ALARM_POWER_CUT; case 36: return Position.ALARM_TOW; default: |