aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-09-09 16:59:54 -0700
committerAnton Tananaev <anton@traccar.org>2022-09-09 16:59:54 -0700
commitff95c7dc0adf17710438f7dd2168d6ad1dd31415 (patch)
treea8d4fbec2dce809bbffae9742ae821b21423dca8 /src/main
parent9b5654e253ed3dedfb43125a0611896dfa8fc863 (diff)
downloadtrackermap-server-ff95c7dc0adf17710438f7dd2168d6ad1dd31415.tar.gz
trackermap-server-ff95c7dc0adf17710438f7dd2168d6ad1dd31415.tar.bz2
trackermap-server-ff95c7dc0adf17710438f7dd2168d6ad1dd31415.zip
Decode G18 light sensor
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/org/traccar/protocol/Gt06ProtocolDecoder.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main/java/org/traccar/protocol/Gt06ProtocolDecoder.java b/src/main/java/org/traccar/protocol/Gt06ProtocolDecoder.java
index b65e4a4b8..885ea4bab 100644
--- a/src/main/java/org/traccar/protocol/Gt06ProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/Gt06ProtocolDecoder.java
@@ -411,9 +411,12 @@ public class Gt06ProtocolDecoder extends BaseProtocolDecoder {
case 0x11:
return Position.ALARM_POWER_OFF;
case 0x13:
+ case 0x25:
return Position.ALARM_TAMPERING;
case 0x14:
return Position.ALARM_DOOR;
+ case 0x23:
+ return Position.ALARM_FALL_DOWN;
case 0x29:
return Position.ALARM_ACCELERATION;
case 0x30:
@@ -423,8 +426,6 @@ public class Gt06ProtocolDecoder extends BaseProtocolDecoder {
return Position.ALARM_CORNERING;
case 0x2C:
return Position.ALARM_ACCIDENT;
- case 0x23:
- return Position.ALARM_FALL_DOWN;
default:
return null;
}