aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-09-25 19:50:20 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2015-09-25 19:50:20 +1200
commitde4e6e680777acb9107e7215e993117d3746208d (patch)
tree8e8078cc29d6802e44054742031f930e80a7f5c1 /src
parent5e97d2fd54ee9a29839f08501fc4e90088f896c9 (diff)
downloadtraccar-server-de4e6e680777acb9107e7215e993117d3746208d.tar.gz
traccar-server-de4e6e680777acb9107e7215e993117d3746208d.tar.bz2
traccar-server-de4e6e680777acb9107e7215e993117d3746208d.zip
Fix web data handler issue
Diffstat (limited to 'src')
-rw-r--r--src/org/traccar/WebDataHandler.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/WebDataHandler.java b/src/org/traccar/WebDataHandler.java
index d694212e2..6f48468ca 100644
--- a/src/org/traccar/WebDataHandler.java
+++ b/src/org/traccar/WebDataHandler.java
@@ -58,7 +58,7 @@ public class WebDataHandler extends BaseDataHandler {
}
private String calculateStatus(Position position) {
- if (position.getAttributes().containsKey(Event.KEY_ALARM) && (Boolean) position.getAttributes().get(Event.KEY_ALARM)) {
+ if (position.getAttributes().containsKey(Event.KEY_ALARM)) {
return "0xF841"; // STATUS_PANIC_ON
} else if (position.getSpeed() < 1.0) {
return "0xF020"; // STATUS_LOCATION