aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/EasyTrackProtocolDecoder.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/EasyTrackProtocolDecoder.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/EasyTrackProtocolDecoder.java')
-rw-r--r--src/org/traccar/protocol/EasyTrackProtocolDecoder.java14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/org/traccar/protocol/EasyTrackProtocolDecoder.java b/src/org/traccar/protocol/EasyTrackProtocolDecoder.java
index 16ced37ae..efc69eca8 100644
--- a/src/org/traccar/protocol/EasyTrackProtocolDecoder.java
+++ b/src/org/traccar/protocol/EasyTrackProtocolDecoder.java
@@ -55,25 +55,25 @@ public class EasyTrackProtocolDecoder extends BaseProtocolDecoder {
.compile();
private String decodeAlarm(long status) {
- if ((status & 0x02000000) > 0) {
+ if ((status & 0x02000000) != 0) {
return Position.ALARM_GEOFENCE_ENTER;
}
- if ((status & 0x04000000) > 0) {
+ if ((status & 0x04000000) != 0) {
return Position.ALARM_GEOFENCE_EXIT;
}
- if ((status & 0x08000000) > 0) {
+ if ((status & 0x08000000) != 0) {
return Position.ALARM_LOW_BATTERY;
}
- if ((status & 0x20000000) > 0) {
+ if ((status & 0x20000000) != 0) {
return Position.ALARM_VIBRATION;
}
- if ((status & 0x80000000) > 0) {
+ if ((status & 0x80000000) != 0) {
return Position.ALARM_OVERSPEED;
}
- if ((status & 0x00010000) > 0) {
+ if ((status & 0x00010000) != 0) {
return Position.ALARM_SOS;
}
- if ((status & 0x00040000) > 0) {
+ if ((status & 0x00040000) != 0) {
return Position.ALARM_POWER_CUT;
}
return null;