diff options
author | Abyss777 <abyss@fox5.ru> | 2016-08-01 17:39:57 +0500 |
---|---|---|
committer | Abyss777 <abyss@fox5.ru> | 2016-08-01 17:39:57 +0500 |
commit | 4ebce65e3d6db55d427f504bd62972370fab2eec (patch) | |
tree | 52aea154e6bb5c76a20b3dd5426d98a0e5798d2b /src/org/traccar/protocol | |
parent | a2214178139b7fb097e2b6aee2518a0255d44f06 (diff) | |
download | traccar-server-4ebce65e3d6db55d427f504bd62972370fab2eec.tar.gz traccar-server-4ebce65e3d6db55d427f504bd62972370fab2eec.tar.bz2 traccar-server-4ebce65e3d6db55d427f504bd62972370fab2eec.zip |
Small optimization
Diffstat (limited to 'src/org/traccar/protocol')
-rw-r--r-- | src/org/traccar/protocol/MeiligaoProtocolDecoder.java | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/org/traccar/protocol/MeiligaoProtocolDecoder.java b/src/org/traccar/protocol/MeiligaoProtocolDecoder.java index f23641ddb..c6c984dda 100644 --- a/src/org/traccar/protocol/MeiligaoProtocolDecoder.java +++ b/src/org/traccar/protocol/MeiligaoProtocolDecoder.java @@ -209,10 +209,7 @@ public class MeiligaoProtocolDecoder extends BaseProtocolDecoder { // Custom data if (command == MSG_ALARM) { - String alarm = decodeAlarm(buf.readUnsignedByte()); - if (alarm != null) { - position.set(Position.KEY_ALARM, alarm); - } + position.set(Position.KEY_ALARM, decodeAlarm(buf.readUnsignedByte())); } else if (command == MSG_POSITION_LOGGED) { buf.skipBytes(6); } |