diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2018-08-17 18:23:00 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2018-08-17 18:23:00 +1200 |
commit | 5ac8ad35a823a7400a14376eb0ec24a4f5a9b7b8 (patch) | |
tree | 04b494c5803574c228f3b5ee30fe40fe58bd3cb1 /src | |
parent | 0f22f82f58a2da921caa70667c4d3dea479aa275 (diff) | |
download | traccar-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.java | 2 |
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)); } |