aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/CellocatorFrameDecoder.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/traccar/protocol/CellocatorFrameDecoder.java')
-rw-r--r--src/org/traccar/protocol/CellocatorFrameDecoder.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/org/traccar/protocol/CellocatorFrameDecoder.java b/src/org/traccar/protocol/CellocatorFrameDecoder.java
index d4650d966..c9cfab99e 100644
--- a/src/org/traccar/protocol/CellocatorFrameDecoder.java
+++ b/src/org/traccar/protocol/CellocatorFrameDecoder.java
@@ -39,7 +39,8 @@ public class CellocatorFrameDecoder extends FrameDecoder {
// Size depending on message type
int length = 0;
- switch (buf.getUnsignedByte(4)) {
+ int type = buf.getUnsignedByte(4);
+ switch (type) {
case CellocatorProtocolDecoder.MSG_CLIENT_STATUS:
length = 70;
break;
@@ -58,7 +59,7 @@ public class CellocatorFrameDecoder extends FrameDecoder {
length = 15 + buf.getUnsignedByte(13);
break;
default:
- Log.warning(new UnsupportedOperationException());
+ Log.warning(new UnsupportedOperationException(String.valueOf(type)));
break;
}