From 9a40169b25e52fe15008eca61867dd1f81a31fba Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Fri, 7 Aug 2015 11:07:51 +1200 Subject: Remove script line number from event --- src/org/traccar/protocol/CalAmpProtocolDecoder.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/org/traccar/protocol/CalAmpProtocolDecoder.java b/src/org/traccar/protocol/CalAmpProtocolDecoder.java index 51a2025b8..4dfb93440 100644 --- a/src/org/traccar/protocol/CalAmpProtocolDecoder.java +++ b/src/org/traccar/protocol/CalAmpProtocolDecoder.java @@ -193,7 +193,8 @@ public class CalAmpProtocolDecoder extends BaseProtocolDecoder { // Event code and status if (type == MSG_EVENT_REPORT || type == MSG_MINI_EVENT_REPORT) { - position.set(Event.KEY_EVENT, buf.readUnsignedByte() + " - " + buf.readUnsignedByte()); + buf.readUnsignedByte(); + position.set(Event.KEY_EVENT, buf.readUnsignedByte()); } // Accumulators -- cgit v1.2.3