aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-01-10 10:11:26 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2015-01-10 10:11:26 +1300
commit9c6511f387e8e58d086fa45663478394a31eaf9e (patch)
tree91ad136c1cc36dd9bf74fa24876d5f4751050a38 /src/org/traccar/protocol
parent85ee9ee4f04a61e8c9244f3446b9cdf38c318e41 (diff)
downloadtrackermap-server-9c6511f387e8e58d086fa45663478394a31eaf9e.tar.gz
trackermap-server-9c6511f387e8e58d086fa45663478394a31eaf9e.tar.bz2
trackermap-server-9c6511f387e8e58d086fa45663478394a31eaf9e.zip
Fix Tramigo frame decoder
Diffstat (limited to 'src/org/traccar/protocol')
-rw-r--r--src/org/traccar/protocol/TramigoFrameDecoder.java3
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);