aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/CarcellProtocolDecoder.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/traccar/protocol/CarcellProtocolDecoder.java')
-rw-r--r--src/org/traccar/protocol/CarcellProtocolDecoder.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/org/traccar/protocol/CarcellProtocolDecoder.java b/src/org/traccar/protocol/CarcellProtocolDecoder.java
index 615115147..b41f14ad5 100644
--- a/src/org/traccar/protocol/CarcellProtocolDecoder.java
+++ b/src/org/traccar/protocol/CarcellProtocolDecoder.java
@@ -127,7 +127,7 @@ public class CarcellProtocolDecoder extends BaseProtocolDecoder {
position.set("jamming", parser.next().equals("1"));
position.set(Position.KEY_GPS, parser.nextInt());
- parser.next(); // clock type
+ position.set("clockType", parser.next());
DateBuilder dateBuilder = new DateBuilder().
setDateReverse(parser.nextInt(), parser.nextInt(), parser.nextInt())
@@ -155,7 +155,7 @@ public class CarcellProtocolDecoder extends BaseProtocolDecoder {
if (parser.hasNext(5)) {
position.set("timeUntilDelivery", parser.nextInt());
parser.next(); // panic button status
- parser.next(); // aux
+ position.set(Position.KEY_INPUT, parser.next());
Double mainVoltage = parser.nextDouble() / 100d;
position.set(Position.KEY_POWER, mainVoltage);