diff options
author | Abyss777 <abyss@fox5.ru> | 2016-09-21 09:29:42 +0500 |
---|---|---|
committer | Abyss777 <abyss@fox5.ru> | 2016-09-21 09:29:42 +0500 |
commit | b298aef26f01154e84e9a00b29ff62921484a220 (patch) | |
tree | fa8b81237c8a4771241aab2da99fa22759ba7587 /src/org/traccar/events/OverspeedEventHandler.java | |
parent | e0a4ed2a60fd1a38a904fa7156afba6c0aee1cdb (diff) | |
download | trackermap-server-b298aef26f01154e84e9a00b29ff62921484a220.tar.gz trackermap-server-b298aef26f01154e84e9a00b29ff62921484a220.tar.bz2 trackermap-server-b298aef26f01154e84e9a00b29ff62921484a220.zip |
- Add two functions to lookup attributes from device to server and from device to config
- Removed constant
Diffstat (limited to 'src/org/traccar/events/OverspeedEventHandler.java')
-rw-r--r-- | src/org/traccar/events/OverspeedEventHandler.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/org/traccar/events/OverspeedEventHandler.java b/src/org/traccar/events/OverspeedEventHandler.java index 302fa87cd..a32dfae7e 100644 --- a/src/org/traccar/events/OverspeedEventHandler.java +++ b/src/org/traccar/events/OverspeedEventHandler.java @@ -48,7 +48,8 @@ public class OverspeedEventHandler extends BaseEventHandler { Collection<Event> events = new ArrayList<>(); double speed = position.getSpeed(); double speedLimit = 0; - String speedLimitAttribute = Context.getDeviceManager().lookupAttribute(device.getId(), ATTRIBUTE_SPEED_LIMIT); + String speedLimitAttribute = Context.getDeviceManager() + .lookupServerAttribute(device.getId(), ATTRIBUTE_SPEED_LIMIT); if (speedLimitAttribute != null) { speedLimit = Double.parseDouble(speedLimitAttribute); } |