aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/org/traccar/protocol/NvsProtocolDecoder.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/org/traccar/protocol/NvsProtocolDecoder.java b/src/org/traccar/protocol/NvsProtocolDecoder.java
index 0c15f6fc5..9dcf31899 100644
--- a/src/org/traccar/protocol/NvsProtocolDecoder.java
+++ b/src/org/traccar/protocol/NvsProtocolDecoder.java
@@ -50,6 +50,8 @@ public class NvsProtocolDecoder extends BaseProtocolDecoder {
if (buf.getUnsignedByte(buf.readerIndex()) == 0) {
+ buf.readUnsignedShort(); // length
+
String imei = buf.toString(buf.readerIndex(), 15, Charset.defaultCharset());
if (!identify(imei, channel, remoteAddress)) {