From 7dfa56d7e85ad982bc5ed0cf8800a073d86240eb Mon Sep 17 00:00:00 2001 From: jon-stumpf Date: Tue, 21 Feb 2017 21:58:48 -0500 Subject: Recorded KEY_SATELLITES in CellocatorProtocol; --- src/org/traccar/protocol/CellocatorProtocolDecoder.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/org/traccar/protocol') diff --git a/src/org/traccar/protocol/CellocatorProtocolDecoder.java b/src/org/traccar/protocol/CellocatorProtocolDecoder.java index 7df8cad8a..970f0ee4c 100644 --- a/src/org/traccar/protocol/CellocatorProtocolDecoder.java +++ b/src/org/traccar/protocol/CellocatorProtocolDecoder.java @@ -137,7 +137,9 @@ public class CellocatorProtocolDecoder extends BaseProtocolDecoder { buf.readUnsignedByte(); // mode 1 buf.readUnsignedByte(); // mode 2 - position.setValid(buf.readUnsignedByte() >= 3); // satellites + int satellites = buf.readUnsignedByte(); + position.setValid(satellites >= 3); + position.set(Position.KEY_SATELLITES, satellites); position.setLongitude(buf.readInt() / Math.PI * 180 / 100000000); position.setLatitude(buf.readInt() / Math.PI * 180 / 100000000.0); -- cgit v1.2.3