Skip to content

Commit

Permalink
Add Xexun2 dismantle alarm
Browse files Browse the repository at this point in the history
  • Loading branch information
tananaev committed Jul 20, 2022
1 parent 35070c8 commit 482876a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/org/traccar/protocol/Xexun2ProtocolDecoder.java
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@ private String decodeAlarm(long value) {
if (BitUtil.check(value, 0)) {
return Position.ALARM_SOS;
}
if (BitUtil.check(value, 1)) {
return Position.ALARM_REMOVING;
}
if (BitUtil.check(value, 15)) {
return Position.ALARM_FALL_DOWN;
}
Expand Down

0 comments on commit 482876a

Please sign in to comment.