diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2017-06-16 18:44:32 +1200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-16 18:44:32 +1200 |
commit | fe4ea97dabc55c4585d8b32bd4dae32cd255add3 (patch) | |
tree | 682c24e519446f419de1f01ac5e3879f49934a93 /src/org/traccar/protocol/Gl200ProtocolDecoder.java | |
parent | 65bec416c56715cd4a24ef69f136e4f67be56851 (diff) | |
parent | b1d5a5cfd165d2b52cf4dcdc57a6825e0ff1db8f (diff) | |
download | trackermap-server-fe4ea97dabc55c4585d8b32bd4dae32cd255add3.tar.gz trackermap-server-fe4ea97dabc55c4585d8b32bd4dae32cd255add3.tar.bz2 trackermap-server-fe4ea97dabc55c4585d8b32bd4dae32cd255add3.zip |
Merge pull request #3256 from Abyss777/motion_detection
Centralized motion detection
Diffstat (limited to 'src/org/traccar/protocol/Gl200ProtocolDecoder.java')
-rw-r--r-- | src/org/traccar/protocol/Gl200ProtocolDecoder.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/Gl200ProtocolDecoder.java b/src/org/traccar/protocol/Gl200ProtocolDecoder.java index 0927f53fd..a3062c942 100644 --- a/src/org/traccar/protocol/Gl200ProtocolDecoder.java +++ b/src/org/traccar/protocol/Gl200ProtocolDecoder.java @@ -716,7 +716,7 @@ public class Gl200ProtocolDecoder extends BaseProtocolDecoder { int reportType = parser.nextInt(0); if (type.equals("NMR")) { - position.set(Position.KEY_MOTION, reportType); + position.set(Position.KEY_MOTION, reportType == 1); } else if (type.equals("SOS")) { position.set(Position.KEY_ALARM, Position.ALARM_SOS); } |