aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2021-05-22 15:11:43 -0700
committerAnton Tananaev <anton.tananaev@gmail.com>2021-05-22 15:11:43 -0700
commit814dc83e21cdfbc563469c8adcdfbd278f26d551 (patch)
tree440990bab9550831cfbd14d64cbd369f94d2cb10 /src/main/java/org
parentf697d6fad3648a8da2ad3bca9ff14263859a8e71 (diff)
downloadtraccar-server-814dc83e21cdfbc563469c8adcdfbd278f26d551.tar.gz
traccar-server-814dc83e21cdfbc563469c8adcdfbd278f26d551.tar.bz2
traccar-server-814dc83e21cdfbc563469c8adcdfbd278f26d551.zip
Use long int for status
Diffstat (limited to 'src/main/java/org')
-rw-r--r--src/main/java/org/traccar/protocol/PluginProtocolDecoder.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/protocol/PluginProtocolDecoder.java b/src/main/java/org/traccar/protocol/PluginProtocolDecoder.java
index 0d4ea7139..65de211ac 100644
--- a/src/main/java/org/traccar/protocol/PluginProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/PluginProtocolDecoder.java
@@ -103,7 +103,7 @@ public class PluginProtocolDecoder extends BaseProtocolDecoder {
position.set(Position.KEY_SATELLITES, parser.nextInt());
position.set(Position.KEY_ODOMETER, (long) (parser.nextDouble() * 1000));
- int status = parser.nextInt();
+ long status = parser.nextLong();
position.setValid(BitUtil.check(status, 0));
position.set(Position.KEY_IGNITION, BitUtil.check(status, 1));
for (int i = 0; i < 4; i++) {