From 23b09f83989a4b012bc2387fb6e180baccf9a60c Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Wed, 23 Sep 2015 16:45:41 +1200 Subject: Minor gps103 protocol cleanup --- src/org/traccar/protocol/Gps103ProtocolDecoder.java | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/org/traccar/protocol/Gps103ProtocolDecoder.java b/src/org/traccar/protocol/Gps103ProtocolDecoder.java index 570ebe8c0..a38e4f133 100644 --- a/src/org/traccar/protocol/Gps103ProtocolDecoder.java +++ b/src/org/traccar/protocol/Gps103ProtocolDecoder.java @@ -199,11 +199,9 @@ public class Gps103ProtocolDecoder extends BaseProtocolDecoder { } // Additional data - position.set(Event.PREFIX_IO + 1, parser.group(index++)); - position.set(Event.PREFIX_IO + 2, parser.group(index++)); - position.set(Event.PREFIX_IO + 3, parser.group(index++)); - position.set(Event.PREFIX_IO + 4, parser.group(index++)); - position.set(Event.PREFIX_IO + 5, parser.group(index++)); + for (int i = 1; i <= 5; i++) { + position.set(Event.PREFIX_IO + 1, parser.group(index++)); + } return position; } -- cgit v1.2.3