diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2017-12-09 22:58:21 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2017-12-09 22:58:21 +1300 |
commit | a991edb432d81a4b5983b78a04e8f8ac9d4d6538 (patch) | |
tree | 219d65a67b53d56e4b3215f238994c6f817d3f1d /src/org/traccar/protocol/Gl200TextProtocolDecoder.java | |
parent | 60a58d0c52725892a812a87a11cb2ad3a5d3e73b (diff) | |
download | trackermap-server-a991edb432d81a4b5983b78a04e8f8ac9d4d6538.tar.gz trackermap-server-a991edb432d81a4b5983b78a04e8f8ac9d4d6538.tar.bz2 trackermap-server-a991edb432d81a4b5983b78a04e8f8ac9d4d6538.zip |
Fix code style issues
Diffstat (limited to 'src/org/traccar/protocol/Gl200TextProtocolDecoder.java')
-rw-r--r-- | src/org/traccar/protocol/Gl200TextProtocolDecoder.java | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/org/traccar/protocol/Gl200TextProtocolDecoder.java b/src/org/traccar/protocol/Gl200TextProtocolDecoder.java index fb0023dba..d7468e71d 100644 --- a/src/org/traccar/protocol/Gl200TextProtocolDecoder.java +++ b/src/org/traccar/protocol/Gl200TextProtocolDecoder.java @@ -575,10 +575,8 @@ public class Gl200TextProtocolDecoder extends BaseProtocolDecoder { if (BitUtil.check(reportMask, 9)) { index += 1; // range } - if (BitUtil.check(reportMask, 10)) { - if (!values[index++].isEmpty()) { - position.set(Position.KEY_THROTTLE, Integer.parseInt(values[index - 1])); - } + if (BitUtil.check(reportMask, 10) && !values[index++].isEmpty()) { + position.set(Position.KEY_THROTTLE, Integer.parseInt(values[index - 1])); } if (BitUtil.check(reportMask, 11)) { position.set(Position.KEY_HOURS, Double.parseDouble(values[index++])); |