aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authorJames <jamejo@gmail.com>2020-08-22 15:37:14 -0400
committerGitHub <noreply@github.com>2020-08-22 15:37:14 -0400
commit195102fc9138ec7b2ad89735ee27bc2be203070d (patch)
treebc8d1d9c3383a70de39b139bcb32f2494e530ec4 /src/main/java
parentb90a8dc10826bc0fecc6833e44fd25433fc31081 (diff)
downloadtrackermap-server-195102fc9138ec7b2ad89735ee27bc2be203070d.tar.gz
trackermap-server-195102fc9138ec7b2ad89735ee27bc2be203070d.tar.bz2
trackermap-server-195102fc9138ec7b2ad89735ee27bc2be203070d.zip
Add event power on
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/org/traccar/protocol/MictrackProtocolDecoder.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/java/org/traccar/protocol/MictrackProtocolDecoder.java b/src/main/java/org/traccar/protocol/MictrackProtocolDecoder.java
index ec4f97919..5ea9f148c 100644
--- a/src/main/java/org/traccar/protocol/MictrackProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/MictrackProtocolDecoder.java
@@ -66,6 +66,8 @@ public class MictrackProtocolDecoder extends BaseProtocolDecoder {
private String decodeAlarm(int event) {
switch (event) {
+ case 0:
+ return Position.ALARM_POWER_ON;
case 5:
return Position.ALARM_SOS;
case 8: