diff options
author | Anton Tananaev <anton@traccar.org> | 2022-11-27 10:31:12 -0800 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2022-11-27 10:31:12 -0800 |
commit | 146de22b51139edcc3132f403e86006ac1fc3419 (patch) | |
tree | 1d66c5a6b28507bc807049a81264d1907dbf0b64 /src/main/java/org | |
parent | 19d10da19db57b2119c295cb452a271c3de48f85 (diff) | |
download | trackermap-server-146de22b51139edcc3132f403e86006ac1fc3419.tar.gz trackermap-server-146de22b51139edcc3132f403e86006ac1fc3419.tar.bz2 trackermap-server-146de22b51139edcc3132f403e86006ac1fc3419.zip |
Support GL600 GPS lock
Diffstat (limited to 'src/main/java/org')
-rw-r--r-- | src/main/java/org/traccar/protocol/Jt600ProtocolDecoder.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/org/traccar/protocol/Jt600ProtocolDecoder.java b/src/main/java/org/traccar/protocol/Jt600ProtocolDecoder.java index 9fa550ded..9ed44f565 100644 --- a/src/main/java/org/traccar/protocol/Jt600ProtocolDecoder.java +++ b/src/main/java/org/traccar/protocol/Jt600ProtocolDecoder.java @@ -1,5 +1,5 @@ /* - * Copyright 2012 - 2021 Anton Tananaev (anton@traccar.org) + * Copyright 2012 - 2022 Anton Tananaev (anton@traccar.org) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -143,7 +143,7 @@ public class Jt600ProtocolDecoder extends BaseProtocolDecoder { boolean responseRequired = false; - while (buf.readableBytes() > 1) { + while (buf.readableBytes() >= 17) { Position position = new Position(getProtocolName()); position.setDeviceId(deviceSession.getDeviceId()); |