aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/TaipProtocolDecoder.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2018-05-26 17:09:39 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2018-05-26 17:09:39 +1200
commitc9b4dc5331b29fcc0bb9be35d132b1725662ca09 (patch)
tree8efad4cb5e84207a8749f2df4d1ec5fb712cc480 /src/org/traccar/protocol/TaipProtocolDecoder.java
parentdf3c354c732b264d9f80abdacb9a551388029674 (diff)
downloadtrackermap-server-c9b4dc5331b29fcc0bb9be35d132b1725662ca09.tar.gz
trackermap-server-c9b4dc5331b29fcc0bb9be35d132b1725662ca09.tar.bz2
trackermap-server-c9b4dc5331b29fcc0bb9be35d132b1725662ca09.zip
Fix code check issues
Diffstat (limited to 'src/org/traccar/protocol/TaipProtocolDecoder.java')
-rw-r--r--src/org/traccar/protocol/TaipProtocolDecoder.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/TaipProtocolDecoder.java b/src/org/traccar/protocol/TaipProtocolDecoder.java
index a7aa9dd96..ea5492462 100644
--- a/src/org/traccar/protocol/TaipProtocolDecoder.java
+++ b/src/org/traccar/protocol/TaipProtocolDecoder.java
@@ -178,7 +178,7 @@ public class TaipProtocolDecoder extends BaseProtocolDecoder {
position.set(Position.PREFIX_TEMP + 2, parser.nextInt() * 0.01);
}
- position.setValid(valid != null ? valid : true);
+ position.setValid(valid == null || valid);
if (event != null) {
position.set(Position.KEY_EVENT, event);