From 5ac8ad35a823a7400a14376eb0ec24a4f5a9b7b8 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Fri, 17 Aug 2018 18:23:00 +1200 Subject: Fix Sanav status decoding --- src/org/traccar/protocol/SanavProtocolDecoder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/org') 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)); } -- cgit v1.2.3