diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-10-20 13:59:44 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-10-20 13:59:44 +1300 |
commit | 06b5113f3d98a44530c2ade6810bc75092fccc31 (patch) | |
tree | cb8c03c8f3394db0691b73547e86d2a181462607 /src/org/traccar/protocol/UlbotechProtocolDecoder.java | |
parent | 7b103b43754de283e423df03042c6f75307c8466 (diff) | |
download | trackermap-server-06b5113f3d98a44530c2ade6810bc75092fccc31.tar.gz trackermap-server-06b5113f3d98a44530c2ade6810bc75092fccc31.tar.bz2 trackermap-server-06b5113f3d98a44530c2ade6810bc75092fccc31.zip |
Refactor bit utililies class
Diffstat (limited to 'src/org/traccar/protocol/UlbotechProtocolDecoder.java')
-rw-r--r-- | src/org/traccar/protocol/UlbotechProtocolDecoder.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/UlbotechProtocolDecoder.java b/src/org/traccar/protocol/UlbotechProtocolDecoder.java index a33077e5f..b7a00e3b5 100644 --- a/src/org/traccar/protocol/UlbotechProtocolDecoder.java +++ b/src/org/traccar/protocol/UlbotechProtocolDecoder.java @@ -123,7 +123,7 @@ public class UlbotechProtocolDecoder extends BaseProtocolDecoder { case DATA_ADC: for (int i = 0; i < length / 2; i++) { int value = buf.readUnsignedShort(); - position.set(Event.PREFIX_ADC + BitUtil.range(value, 12), BitUtil.range(value, 0, 12)); + position.set(Event.PREFIX_ADC + BitUtil.from(value, 12), BitUtil.to(value, 12)); } break; |