diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-05-04 11:27:23 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-05-04 11:27:23 +1200 |
commit | 57aec3786c265baac375720e5c5389035f12591b (patch) | |
tree | 18f4afc99aad4b5af2b6c2526cbde635e8cddb18 /src/org/traccar/protocol/OrionProtocolDecoder.java | |
parent | 93feb8a5484fd6c4c3da2032d4c843b3194b5ff7 (diff) | |
download | trackermap-server-57aec3786c265baac375720e5c5389035f12591b.tar.gz trackermap-server-57aec3786c265baac375720e5c5389035f12591b.tar.bz2 trackermap-server-57aec3786c265baac375720e5c5389035f12591b.zip |
More other data cleanup
Diffstat (limited to 'src/org/traccar/protocol/OrionProtocolDecoder.java')
-rw-r--r-- | src/org/traccar/protocol/OrionProtocolDecoder.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/org/traccar/protocol/OrionProtocolDecoder.java b/src/org/traccar/protocol/OrionProtocolDecoder.java index 0361d2234..7265a9762 100644 --- a/src/org/traccar/protocol/OrionProtocolDecoder.java +++ b/src/org/traccar/protocol/OrionProtocolDecoder.java @@ -87,9 +87,8 @@ public class OrionProtocolDecoder extends BaseProtocolDecoder { position.set(Event.KEY_EVENT, buf.readUnsignedByte()); buf.readUnsignedByte(); // length - position.set("flag1", buf.readUnsignedByte()); - position.set("flag2", buf.readUnsignedByte()); - + position.set(Event.KEY_FLAGS, buf.readUnsignedShort()); + // Location position.setLatitude(convertCoordinate(buf.readInt())); position.setLongitude(convertCoordinate(buf.readInt())); |