diff options
author | Abyss777 <abyss@fox5.ru> | 2017-06-16 09:30:32 +0500 |
---|---|---|
committer | Abyss777 <abyss@fox5.ru> | 2017-06-16 09:30:32 +0500 |
commit | b5e180da135c48afc3d89665000b6de0e6a330e3 (patch) | |
tree | 1f9c604ac9898eb0c88a79c34b25f604037db55a /src/org/traccar/protocol | |
parent | bf57beec25228d58df8604e23d8709f6d196f3c5 (diff) | |
download | traccar-server-b5e180da135c48afc3d89665000b6de0e6a330e3.tar.gz traccar-server-b5e180da135c48afc3d89665000b6de0e6a330e3.tar.bz2 traccar-server-b5e180da135c48afc3d89665000b6de0e6a330e3.zip |
Centralized motion detection
Diffstat (limited to 'src/org/traccar/protocol')
-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); } |