aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2018-02-07 00:40:23 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2018-02-07 00:40:23 +1300
commit231e2104acbfa7947f10239e3a41be8327828d8f (patch)
treeb537394e5237ef5f5a519b4ae28bf9ef8bae227e /src/org/traccar
parent92fa1cd409393a10978a391c0a27f1eb37a0b74c (diff)
downloadtrackermap-server-231e2104acbfa7947f10239e3a41be8327828d8f.tar.gz
trackermap-server-231e2104acbfa7947f10239e3a41be8327828d8f.tar.bz2
trackermap-server-231e2104acbfa7947f10239e3a41be8327828d8f.zip
Fix Queclink external power decoding (fix #3758)
Diffstat (limited to 'src/org/traccar')
-rw-r--r--src/org/traccar/protocol/Gl200TextProtocolDecoder.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/org/traccar/protocol/Gl200TextProtocolDecoder.java b/src/org/traccar/protocol/Gl200TextProtocolDecoder.java
index 31325d2f8..d32f0a71f 100644
--- a/src/org/traccar/protocol/Gl200TextProtocolDecoder.java
+++ b/src/org/traccar/protocol/Gl200TextProtocolDecoder.java
@@ -692,9 +692,8 @@ public class Gl200TextProtocolDecoder extends BaseProtocolDecoder {
decodeLocation(position, parser);
- // power value only on some devices
if (power > 10) {
- position.set(Position.KEY_POWER, power);
+ position.set(Position.KEY_POWER, power * 0.001); // only on some devices
}
position.set(Position.KEY_ODOMETER, parser.nextDouble(0) * 1000);
@@ -749,7 +748,7 @@ public class Gl200TextProtocolDecoder extends BaseProtocolDecoder {
decodeLocation(position, parser);
- position.set(Position.KEY_POWER, power);
+ position.set(Position.KEY_POWER, power * 0.001);
position.set(Position.KEY_ODOMETER, parser.nextDouble(0) * 1000);
position.set(Position.KEY_HOURS, parser.next());
position.set(Position.PREFIX_ADC + 1, parser.next());