diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2017-01-16 05:48:58 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2017-01-16 04:48:58 +1300 |
commit | 0885b4c200600ff320af9a77eacda5fc4d63c795 (patch) | |
tree | ab25be44802d13f8c111071f13821447caaea5a1 /src/org | |
parent | 671010ae5e270c58ffbae611e5580d3971133070 (diff) | |
download | trackermap-server-0885b4c200600ff320af9a77eacda5fc4d63c795.tar.gz trackermap-server-0885b4c200600ff320af9a77eacda5fc4d63c795.tar.bz2 trackermap-server-0885b4c200600ff320af9a77eacda5fc4d63c795.zip |
Add Watch protocol test case
Diffstat (limited to 'src/org')
-rw-r--r-- | src/org/traccar/protocol/WatchProtocolDecoder.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/org/traccar/protocol/WatchProtocolDecoder.java b/src/org/traccar/protocol/WatchProtocolDecoder.java index bb760b3a0..0f76f721d 100644 --- a/src/org/traccar/protocol/WatchProtocolDecoder.java +++ b/src/org/traccar/protocol/WatchProtocolDecoder.java @@ -97,7 +97,7 @@ public class WatchProtocolDecoder extends BaseProtocolDecoder { return null; } - private void decodeLbs(Position position, String data) { + private void decodeTail(Position position, String data) { String[] values = data.split(","); int index = 0; @@ -200,7 +200,7 @@ public class WatchProtocolDecoder extends BaseProtocolDecoder { position.set(Position.KEY_ALARM, decodeAlarm(parser.nextInt(16))); - decodeLbs(position, parser.next()); + decodeTail(position, parser.next()); return position; |