aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2016-08-01 17:39:57 +0500
committerAbyss777 <abyss@fox5.ru>2016-08-01 17:39:57 +0500
commit4ebce65e3d6db55d427f504bd62972370fab2eec (patch)
tree52aea154e6bb5c76a20b3dd5426d98a0e5798d2b /src
parenta2214178139b7fb097e2b6aee2518a0255d44f06 (diff)
downloadtrackermap-server-4ebce65e3d6db55d427f504bd62972370fab2eec.tar.gz
trackermap-server-4ebce65e3d6db55d427f504bd62972370fab2eec.tar.bz2
trackermap-server-4ebce65e3d6db55d427f504bd62972370fab2eec.zip
Small optimization
Diffstat (limited to 'src')
-rw-r--r--src/org/traccar/protocol/MeiligaoProtocolDecoder.java5
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);
}