aboutsummaryrefslogtreecommitdiff
path: root/src/org
diff options
context:
space:
mode:
Diffstat (limited to 'src/org')
-rw-r--r--src/org/traccar/protocol/T55ProtocolDecoder.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/T55ProtocolDecoder.java b/src/org/traccar/protocol/T55ProtocolDecoder.java
index 71f493318..813d58ba8 100644
--- a/src/org/traccar/protocol/T55ProtocolDecoder.java
+++ b/src/org/traccar/protocol/T55ProtocolDecoder.java
@@ -237,7 +237,7 @@ public class T55ProtocolDecoder extends BaseProtocolDecoder {
this.position = null;
return position;
}
- } else if (Character.isDigit(sentence.charAt(0)) && sentence.length() == 15) {
+ } else if (sentence.length() == 15 && Character.isDigit(sentence.charAt(0))) {
identify(sentence, channel, remoteAddress);
} else if (sentence.startsWith("$GPRMC")) {
return decodeGprmc(sentence, remoteAddress, channel);