From 670acf03fb75e56fc0efc0c1fcfac04060bfb985 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sun, 31 May 2015 23:31:08 +1200 Subject: Fix problem in Castel decoder --- src/org/traccar/protocol/CastelProtocolDecoder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/org/traccar') diff --git a/src/org/traccar/protocol/CastelProtocolDecoder.java b/src/org/traccar/protocol/CastelProtocolDecoder.java index 75021d3cd..0b00c050e 100644 --- a/src/org/traccar/protocol/CastelProtocolDecoder.java +++ b/src/org/traccar/protocol/CastelProtocolDecoder.java @@ -80,7 +80,7 @@ public class CastelProtocolDecoder extends BaseProtocolDecoder { return null; } else if (type == MSG_LOGIN) { - if (channel == null) { + if (channel != null) { ChannelBuffer response = ChannelBuffers.directBuffer(ByteOrder.LITTLE_ENDIAN, 41); response.writeByte(0x40); response.writeByte(0x40); response.writeShort(response.capacity()); -- cgit v1.2.3