aboutsummaryrefslogtreecommitdiff
path: root/src/org
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2018-04-27 06:21:56 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2018-04-27 06:21:56 +1200
commit2738665b298f3b8de33f96c893ae40ac5d6d25d0 (patch)
tree24716f58005869656b5e7a3c0b0e641843ac230d /src/org
parentbe6226d7039be781be4ce710e98ca85fd39bb3b9 (diff)
downloadtraccar-server-2738665b298f3b8de33f96c893ae40ac5d6d25d0.tar.gz
traccar-server-2738665b298f3b8de33f96c893ae40ac5d6d25d0.tar.bz2
traccar-server-2738665b298f3b8de33f96c893ae40ac5d6d25d0.zip
Fix Totem alarm decoding
Diffstat (limited to 'src/org')
-rw-r--r--src/org/traccar/protocol/TotemProtocolDecoder.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/TotemProtocolDecoder.java b/src/org/traccar/protocol/TotemProtocolDecoder.java
index 841c3c3dc..06a1fbc41 100644
--- a/src/org/traccar/protocol/TotemProtocolDecoder.java
+++ b/src/org/traccar/protocol/TotemProtocolDecoder.java
@@ -367,7 +367,7 @@ public class TotemProtocolDecoder extends BaseProtocolDecoder {
String sentence = (String) msg;
Pattern pattern = PATTERN3;
- if (sentence.indexOf("A") == 6) {
+ if (sentence.charAt(2) == '0') {
pattern = PATTERN4;
} else if (sentence.contains("$GPRMC")) {
pattern = PATTERN1;