diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-01-10 10:11:26 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-01-10 10:11:26 +1300 |
commit | 9c6511f387e8e58d086fa45663478394a31eaf9e (patch) | |
tree | 91ad136c1cc36dd9bf74fa24876d5f4751050a38 /src | |
parent | 85ee9ee4f04a61e8c9244f3446b9cdf38c318e41 (diff) | |
download | traccar-server-9c6511f387e8e58d086fa45663478394a31eaf9e.tar.gz traccar-server-9c6511f387e8e58d086fa45663478394a31eaf9e.tar.bz2 traccar-server-9c6511f387e8e58d086fa45663478394a31eaf9e.zip |
Fix Tramigo frame decoder
Diffstat (limited to 'src')
-rw-r--r-- | src/org/traccar/protocol/TramigoFrameDecoder.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/TramigoFrameDecoder.java b/src/org/traccar/protocol/TramigoFrameDecoder.java index 687c5ba04..5b3f41078 100644 --- a/src/org/traccar/protocol/TramigoFrameDecoder.java +++ b/src/org/traccar/protocol/TramigoFrameDecoder.java @@ -15,6 +15,7 @@ */ package org.traccar.protocol; +import java.nio.ByteOrder; import org.jboss.netty.buffer.ChannelBuffer; import org.jboss.netty.buffer.ChannelBuffers; import org.jboss.netty.channel.Channel; @@ -43,7 +44,7 @@ public class TramigoFrameDecoder extends LengthFieldBasedFrameDecoder { int length = buf.readableBytes(); byte bytes[] = new byte[length]; buf.getBytes(buf.readerIndex(), bytes); - buf = ChannelBuffers.wrappedBuffer(bytes); + buf = ChannelBuffers.wrappedBuffer(ByteOrder.LITTLE_ENDIAN, bytes); } return decode(ctx, channel, buf); |