From 0885b4c200600ff320af9a77eacda5fc4d63c795 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Mon, 16 Jan 2017 05:48:58 +1300 Subject: Add Watch protocol test case --- src/org/traccar/protocol/WatchProtocolDecoder.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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; -- cgit v1.2.3