diff options
Diffstat (limited to 'src/org/traccar/protocol/NoranProtocolDecoder.java')
-rw-r--r-- | src/org/traccar/protocol/NoranProtocolDecoder.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/org/traccar/protocol/NoranProtocolDecoder.java b/src/org/traccar/protocol/NoranProtocolDecoder.java index a93f16872..e43f47999 100644 --- a/src/org/traccar/protocol/NoranProtocolDecoder.java +++ b/src/org/traccar/protocol/NoranProtocolDecoder.java @@ -27,6 +27,7 @@ import org.jboss.netty.channel.Channel; import org.jboss.netty.channel.ChannelHandlerContext; import org.traccar.BaseProtocolDecoder; +import org.traccar.model.Event; import org.traccar.model.Position; public class NoranProtocolDecoder extends BaseProtocolDecoder { @@ -84,7 +85,7 @@ public class NoranProtocolDecoder extends BaseProtocolDecoder { position.setValid((flags & 0x01) != 0); // Alarm type - position.set("alarm", buf.readUnsignedByte()); + position.set(Event.KEY_ALARM, buf.readUnsignedByte()); // Location position.setSpeed(buf.readUnsignedByte()); @@ -115,7 +116,7 @@ public class NoranProtocolDecoder extends BaseProtocolDecoder { position.set("io", buf.readUnsignedByte()); // Fuel - position.set("fuel", buf.readUnsignedByte()); + position.set(Event.KEY_FUEL, buf.readUnsignedByte()); return position; } |