aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/traccar')
-rw-r--r--src/org/traccar/protocol/Gps103ProtocolDecoder.java8
1 files changed, 3 insertions, 5 deletions
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;
}