aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/protocol/RstProtocolDecoder.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2020-01-18 14:19:03 -0800
committerAnton Tananaev <anton.tananaev@gmail.com>2020-01-18 14:19:03 -0800
commit74739d1c442d4543d70bd6f67569b1338323e83f (patch)
treeb84718bab5ea729369daeb105e4a84118ee2661a /src/main/java/org/traccar/protocol/RstProtocolDecoder.java
parentdad0873b6a61ccfa5e0a65a87cac8d9055add9ff (diff)
downloadtrackermap-server-74739d1c442d4543d70bd6f67569b1338323e83f.tar.gz
trackermap-server-74739d1c442d4543d70bd6f67569b1338323e83f.tar.bz2
trackermap-server-74739d1c442d4543d70bd6f67569b1338323e83f.zip
Fix static check issues
Diffstat (limited to 'src/main/java/org/traccar/protocol/RstProtocolDecoder.java')
-rw-r--r--src/main/java/org/traccar/protocol/RstProtocolDecoder.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/protocol/RstProtocolDecoder.java b/src/main/java/org/traccar/protocol/RstProtocolDecoder.java
index f9c8d9df8..8981c117b 100644
--- a/src/main/java/org/traccar/protocol/RstProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/RstProtocolDecoder.java
@@ -122,7 +122,7 @@ public class RstProtocolDecoder extends BaseProtocolDecoder {
position.set(Position.KEY_RSSI, parser.nextInt());
position.set(Position.PREFIX_TEMP + 1, (int) parser.nextHexInt().byteValue());
- int status = parser.nextHexInt() << 8 + parser.nextHexInt();
+ int status = (parser.nextHexInt() << 8) + parser.nextHexInt();
position.set(Position.KEY_IGNITION, BitUtil.check(status, 7));
position.set(Position.KEY_STATUS, status);