aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/OrionProtocolDecoder.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-10-08 12:10:58 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2015-10-08 12:10:58 +1300
commit2e69800d0d83e3d0486b0ca0cecde7d2a451c105 (patch)
tree25307a6528d081d43de0c13e7a2f044a4dd7b7e3 /src/org/traccar/protocol/OrionProtocolDecoder.java
parent3f5aef83e284a1c4f4e608d57d7f3330af6ea12a (diff)
downloadtrackermap-server-2e69800d0d83e3d0486b0ca0cecde7d2a451c105.tar.gz
trackermap-server-2e69800d0d83e3d0486b0ca0cecde7d2a451c105.tar.bz2
trackermap-server-2e69800d0d83e3d0486b0ca0cecde7d2a451c105.zip
Make protocol message types public
Diffstat (limited to 'src/org/traccar/protocol/OrionProtocolDecoder.java')
-rw-r--r--src/org/traccar/protocol/OrionProtocolDecoder.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/org/traccar/protocol/OrionProtocolDecoder.java b/src/org/traccar/protocol/OrionProtocolDecoder.java
index 647dc2aa7..9b4561e2e 100644
--- a/src/org/traccar/protocol/OrionProtocolDecoder.java
+++ b/src/org/traccar/protocol/OrionProtocolDecoder.java
@@ -35,8 +35,8 @@ public class OrionProtocolDecoder extends BaseProtocolDecoder {
super(protocol);
}
- private static final int TYPE_USERLOG = 0;
- private static final int TYPE_SYSLOG = 3;
+ public static final int MSG_USERLOG = 0;
+ public static final int MSG_SYSLOG = 3;
private static void sendResponse(Channel channel, ChannelBuffer buf) {
if (channel != null) {
@@ -64,7 +64,7 @@ public class OrionProtocolDecoder extends BaseProtocolDecoder {
buf.skipBytes(2); // header
int type = buf.readUnsignedByte() & 0x0f;
- if (type == TYPE_USERLOG) {
+ if (type == MSG_USERLOG) {
int header = buf.readUnsignedByte();