aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2018-08-17 18:23:00 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2018-08-17 18:23:00 +1200
commit5ac8ad35a823a7400a14376eb0ec24a4f5a9b7b8 (patch)
tree04b494c5803574c228f3b5ee30fe40fe58bd3cb1 /src
parent0f22f82f58a2da921caa70667c4d3dea479aa275 (diff)
downloadtraccar-server-5ac8ad35a823a7400a14376eb0ec24a4f5a9b7b8.tar.gz
traccar-server-5ac8ad35a823a7400a14376eb0ec24a4f5a9b7b8.tar.bz2
traccar-server-5ac8ad35a823a7400a14376eb0ec24a4f5a9b7b8.zip
Fix Sanav status decoding
Diffstat (limited to 'src')
-rw-r--r--src/org/traccar/protocol/SanavProtocolDecoder.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/SanavProtocolDecoder.java b/src/org/traccar/protocol/SanavProtocolDecoder.java
index 688157171..763b51d04 100644
--- a/src/org/traccar/protocol/SanavProtocolDecoder.java
+++ b/src/org/traccar/protocol/SanavProtocolDecoder.java
@@ -87,7 +87,7 @@ public class SanavProtocolDecoder extends BaseProtocolDecoder {
position.setTime(dateBuilder.getDate());
if (parser.hasNext()) {
- int io = parser.nextInt();
+ int io = parser.nextHexInt();
for (int i = 0; i < 5; i++) {
position.set(Position.PREFIX_IN + (i + 1), BitUtil.check(io, i));
}