aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/SuntechProtocolDecoder.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/traccar/protocol/SuntechProtocolDecoder.java')
-rw-r--r--src/org/traccar/protocol/SuntechProtocolDecoder.java6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/org/traccar/protocol/SuntechProtocolDecoder.java b/src/org/traccar/protocol/SuntechProtocolDecoder.java
index ec764774d..68c920899 100644
--- a/src/org/traccar/protocol/SuntechProtocolDecoder.java
+++ b/src/org/traccar/protocol/SuntechProtocolDecoder.java
@@ -176,10 +176,8 @@ public class SuntechProtocolDecoder extends BaseProtocolDecoder {
position.set(Position.KEY_BATTERY, Double.parseDouble(values[index++]));
}
- if (index < values.length) {
- if (values[index++].equals("0")) {
- position.set(Position.KEY_ARCHIVE, true);
- }
+ if (index < values.length && values[index++].equals("0")) {
+ position.set(Position.KEY_ARCHIVE, true);
}
if (includeAdc) {