aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-10-09 22:35:21 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2015-10-09 22:35:21 +1300
commit16f2679a18d00270bd733292a11c67b38458bf7b (patch)
tree19aad3fc102bb07752c3e9bc4cfab415fe1ae70e
parent30cf4d484307ad89ce538bae36c47c91eb430536 (diff)
downloadtraccar-server-16f2679a18d00270bd733292a11c67b38458bf7b.tar.gz
traccar-server-16f2679a18d00270bd733292a11c67b38458bf7b.tar.bz2
traccar-server-16f2679a18d00270bd733292a11c67b38458bf7b.zip
Fix small issue in Tytan decoder
-rw-r--r--src/org/traccar/protocol/TytanProtocolDecoder.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/TytanProtocolDecoder.java b/src/org/traccar/protocol/TytanProtocolDecoder.java
index f31e8aead..be9a9afed 100644
--- a/src/org/traccar/protocol/TytanProtocolDecoder.java
+++ b/src/org/traccar/protocol/TytanProtocolDecoder.java
@@ -156,7 +156,7 @@ public class TytanProtocolDecoder extends BaseProtocolDecoder {
}
}
for (int i : temps) {
- position.set(Event.PREFIX_TEMP + n, buf.readUnsignedByte());
+ position.set(Event.PREFIX_TEMP + i, buf.readUnsignedByte());
}
break;
case 28: