From 9f6353e286f9aa50c4d23e212bdc0e2ecd799188 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Tue, 19 May 2020 08:59:18 -0700 Subject: Add missing else --- src/main/java/org/traccar/protocol/DmtProtocolDecoder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/java') diff --git a/src/main/java/org/traccar/protocol/DmtProtocolDecoder.java b/src/main/java/org/traccar/protocol/DmtProtocolDecoder.java index b36093189..26debd998 100644 --- a/src/main/java/org/traccar/protocol/DmtProtocolDecoder.java +++ b/src/main/java/org/traccar/protocol/DmtProtocolDecoder.java @@ -188,7 +188,7 @@ public class DmtProtocolDecoder extends BaseProtocolDecoder { position.set(Position.KEY_ALARM, Position.ALARM_LOW_BATTERY); } else if (!BitUtil.check(input, 2)) { position.set(Position.KEY_ALARM, Position.ALARM_LOW_POWER); - } if (BitUtil.check(input, 6)) { + } else if (BitUtil.check(input, 6)) { position.set(Position.KEY_ALARM, Position.ALARM_TAMPERING); } -- cgit v1.2.3