diff options
Diffstat (limited to 'src/org/traccar/protocol/V680ProtocolDecoder.java')
-rw-r--r-- | src/org/traccar/protocol/V680ProtocolDecoder.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/org/traccar/protocol/V680ProtocolDecoder.java b/src/org/traccar/protocol/V680ProtocolDecoder.java index 53843c23d..570069116 100644 --- a/src/org/traccar/protocol/V680ProtocolDecoder.java +++ b/src/org/traccar/protocol/V680ProtocolDecoder.java @@ -38,7 +38,7 @@ public class V680ProtocolDecoder extends BaseProtocolDecoder { static private Pattern pattern = Pattern.compile( "(?:#(\\d+)#" + // IMEI "([^#]*)#)?" + // User - "([01])#" + // Fix + "(\\d+)#" + // Fix "([^#]+)#" + // Password "[^#]+#" + "(\\d+)#" + // Packet number @@ -101,7 +101,7 @@ public class V680ProtocolDecoder extends BaseProtocolDecoder { extendedInfo.set("user", parser.group(index++)); // Validity - position.setValid(parser.group(index++).compareTo("1") == 0 ? true : false); + position.setValid(Integer.valueOf(parser.group(index++)) > 0 ? true : false); // Password extendedInfo.set("password", parser.group(index++)); |