aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-09-23 16:45:41 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2015-09-23 16:45:41 +1200
commit23b09f83989a4b012bc2387fb6e180baccf9a60c (patch)
tree4abc4668c95c3ce8c13040863120b2ba3183bab2 /src/org/traccar
parente61e883a013d7e46f42d1037dcf79857a9a558b9 (diff)
downloadtraccar-server-23b09f83989a4b012bc2387fb6e180baccf9a60c.tar.gz
traccar-server-23b09f83989a4b012bc2387fb6e180baccf9a60c.tar.bz2
traccar-server-23b09f83989a4b012bc2387fb6e180baccf9a60c.zip
Minor gps103 protocol cleanup
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;
}