aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/MegastekProtocolDecoder.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/traccar/protocol/MegastekProtocolDecoder.java')
-rw-r--r--src/org/traccar/protocol/MegastekProtocolDecoder.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/org/traccar/protocol/MegastekProtocolDecoder.java b/src/org/traccar/protocol/MegastekProtocolDecoder.java
index ee7c5df2c..f73d04be4 100644
--- a/src/org/traccar/protocol/MegastekProtocolDecoder.java
+++ b/src/org/traccar/protocol/MegastekProtocolDecoder.java
@@ -218,7 +218,7 @@ public class MegastekProtocolDecoder extends BaseProtocolDecoder {
position.setAltitude(Double.valueOf(parser.group(index++)));
// Battery
- position.setPower(Double.valueOf(parser.group(index++)));
+ extendedInfo.set("power", Double.valueOf(parser.group(index++)));
// Charger
String charger = parser.group(index++);
@@ -253,7 +253,7 @@ public class MegastekProtocolDecoder extends BaseProtocolDecoder {
extendedInfo.set("gsm", parser.group(index++));
// Battery
- position.setPower(Double.valueOf(parser.group(index++)));
+ extendedInfo.set("battery", Double.valueOf(parser.group(index++)));
extendedInfo.set("flags", parser.group(index++));
extendedInfo.set("input", parser.group(index++));