diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2016-09-15 05:09:00 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2016-09-15 13:09:37 +1200 |
commit | 4e0113f3901617fe0baa1ce2c9e50c5f34089f78 (patch) | |
tree | 23f9a2f00b2eb660a5e3171822476fc0c66dda70 /src/org/traccar/protocol | |
parent | 9ee73b1c0b15f87b338e02e564fbba9d45f09ce8 (diff) | |
download | traccar-server-4e0113f3901617fe0baa1ce2c9e50c5f34089f78.tar.gz traccar-server-4e0113f3901617fe0baa1ce2c9e50c5f34089f78.tar.bz2 traccar-server-4e0113f3901617fe0baa1ce2c9e50c5f34089f78.zip |
Add power cut GT06 alarm (fix #2321)
Diffstat (limited to 'src/org/traccar/protocol')
-rw-r--r-- | src/org/traccar/protocol/Gt06ProtocolDecoder.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/org/traccar/protocol/Gt06ProtocolDecoder.java b/src/org/traccar/protocol/Gt06ProtocolDecoder.java index 3df8a4686..10e19b131 100644 --- a/src/org/traccar/protocol/Gt06ProtocolDecoder.java +++ b/src/org/traccar/protocol/Gt06ProtocolDecoder.java @@ -167,6 +167,8 @@ public class Gt06ProtocolDecoder extends BaseProtocolDecoder { switch (value) { case 0x01: return Position.ALARM_SOS; + case 0x02: + return Position.ALARM_POWER_CUT; case 0x03: case 0x09: return Position.ALARM_VIBRATION; |