aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2020-08-22 13:53:20 -0700
committerGitHub <noreply@github.com>2020-08-22 13:53:20 -0700
commit557c40e533027b15b46aeb3f5eec802089978163 (patch)
treebc8d1d9c3383a70de39b139bcb32f2494e530ec4
parentb90a8dc10826bc0fecc6833e44fd25433fc31081 (diff)
parent195102fc9138ec7b2ad89735ee27bc2be203070d (diff)
downloadtraccar-server-557c40e533027b15b46aeb3f5eec802089978163.tar.gz
traccar-server-557c40e533027b15b46aeb3f5eec802089978163.tar.bz2
traccar-server-557c40e533027b15b46aeb3f5eec802089978163.zip
Merge pull request #4568 from jaimzj/patch-1
MicTrack MT825 add event id 0 (power on)
-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: