aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2021-06-17 10:56:41 -0700
committerGitHub <noreply@github.com>2021-06-17 10:56:41 -0700
commita17db18001085f64599699560087b4bf56ee1711 (patch)
tree1990a38858d29912a1d795723a59c5e02a176c50 /src/main
parentf39dee2a317d68469ee8ca0b55e91ef9c6e0bc01 (diff)
parentc887ecc80a1df26fe95cca9d689af55aa10dae65 (diff)
downloadtraccar-server-a17db18001085f64599699560087b4bf56ee1711.tar.gz
traccar-server-a17db18001085f64599699560087b4bf56ee1711.tar.bz2
traccar-server-a17db18001085f64599699560087b4bf56ee1711.zip
Merge pull request #4699 from l-e-o-n-c-e/patch-1
Take "steps" value from LK frames
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/org/traccar/protocol/WatchProtocolDecoder.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/java/org/traccar/protocol/WatchProtocolDecoder.java b/src/main/java/org/traccar/protocol/WatchProtocolDecoder.java
index d060826cf..5ff0bbb6c 100644
--- a/src/main/java/org/traccar/protocol/WatchProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/WatchProtocolDecoder.java
@@ -244,6 +244,7 @@ public class WatchProtocolDecoder extends BaseProtocolDecoder {
getLastLocation(position, null);
position.set(Position.KEY_BATTERY_LEVEL, Integer.parseInt(values[2]));
+ position.set(Position.KEY_STEPS, Integer.parseInt(values[0]));
return position;
}