aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-12-16 02:37:10 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2016-12-16 02:37:10 +1300
commitde640f41f5a60b75edfac0ba7640aedd879450fb (patch)
tree3bbe269353f2378b0c4c9560187fabe4576004df /src
parent5f128cbbbdcaee7159b532dd6d911206a921fc5f (diff)
downloadtraccar-server-de640f41f5a60b75edfac0ba7640aedd879450fb.tar.gz
traccar-server-de640f41f5a60b75edfac0ba7640aedd879450fb.tar.bz2
traccar-server-de640f41f5a60b75edfac0ba7640aedd879450fb.zip
Decode AutoGrade status as positive
Diffstat (limited to 'src')
-rw-r--r--src/org/traccar/protocol/AutoGradeProtocolDecoder.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/AutoGradeProtocolDecoder.java b/src/org/traccar/protocol/AutoGradeProtocolDecoder.java
index d8fe8b1a2..744117cfe 100644
--- a/src/org/traccar/protocol/AutoGradeProtocolDecoder.java
+++ b/src/org/traccar/protocol/AutoGradeProtocolDecoder.java
@@ -89,7 +89,7 @@ public class AutoGradeProtocolDecoder extends BaseProtocolDecoder {
position.setCourse(parser.nextDouble());
- int status = (byte) parser.next().charAt(0);
+ int status = parser.next().charAt(0);
position.set(Position.KEY_STATUS, status);
position.set(Position.KEY_IGNITION, BitUtil.check(status, 0));