aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/RoboTrackFrameDecoder.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/traccar/protocol/RoboTrackFrameDecoder.java')
-rw-r--r--src/org/traccar/protocol/RoboTrackFrameDecoder.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/RoboTrackFrameDecoder.java b/src/org/traccar/protocol/RoboTrackFrameDecoder.java
index aecbaaa3b..85ed6c76f 100644
--- a/src/org/traccar/protocol/RoboTrackFrameDecoder.java
+++ b/src/org/traccar/protocol/RoboTrackFrameDecoder.java
@@ -23,7 +23,7 @@ import org.traccar.BaseFrameDecoder;
public class RoboTrackFrameDecoder extends BaseFrameDecoder {
private int messageLength(ByteBuf buf) {
- switch ((int) buf.getByte(buf.readerIndex())) {
+ switch (buf.getUnsignedByte(buf.readerIndex())) {
case RoboTrackProtocolDecoder.MSG_ID:
return 69;
case RoboTrackProtocolDecoder.MSG_ACK: