From 16f2679a18d00270bd733292a11c67b38458bf7b Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Fri, 9 Oct 2015 22:35:21 +1300 Subject: Fix small issue in Tytan decoder --- src/org/traccar/protocol/TytanProtocolDecoder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/org/traccar/protocol') 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: -- cgit v1.2.3