aboutsummaryrefslogtreecommitdiff
path: root/src/test/java/org
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-10-27 07:17:25 -0700
committerAnton Tananaev <anton@traccar.org>2022-10-27 07:17:25 -0700
commitab10e710a9c57ef761ea9955198273db5f473581 (patch)
treef10fd94744012bf8d554393c180fff77b7499576 /src/test/java/org
parentcf59eb2c734f7d8bd5ea8f9ff82d4dc91492693f (diff)
downloadtrackermap-server-ab10e710a9c57ef761ea9955198273db5f473581.tar.gz
trackermap-server-ab10e710a9c57ef761ea9955198273db5f473581.tar.bz2
trackermap-server-ab10e710a9c57ef761ea9955198273db5f473581.zip
Fix DT700 temperature decoding
Diffstat (limited to 'src/test/java/org')
-rw-r--r--src/test/java/org/traccar/protocol/HuabaoProtocolDecoderTest.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/java/org/traccar/protocol/HuabaoProtocolDecoderTest.java b/src/test/java/org/traccar/protocol/HuabaoProtocolDecoderTest.java
index f7873ef08..9bbd375dc 100644
--- a/src/test/java/org/traccar/protocol/HuabaoProtocolDecoderTest.java
+++ b/src/test/java/org/traccar/protocol/HuabaoProtocolDecoderTest.java
@@ -15,8 +15,8 @@ public class HuabaoProtocolDecoderTest extends ProtocolTest {
"7e010200204f07788ef67601824f4459344f544d314d4459774d4441314d444977626d5633553235536457786cba7e"));
verifyAttribute(decoder, binary(
- "7e0200005e01229130231209e300000000000c002300d264a305ff322300160000000022091514493503020000a70400000000ac0400000000e5020003e62c01bc5729009ca319bbff0002dd34020754fe1a83393c03bc572900ce371a6133d704dd34020751551d00fefb9a7e"),
- Position.PREFIX_TEMP + 4, 29.0);
+ "7e02000042012291302260198f00000000800c012300d2651605ff3188001e0000000022102510310003020000a70400000000ac040000012ce5020003e60b03bc572900ce2eef183200e7030000005c7e"),
+ Position.PREFIX_TEMP + 3, -17.094117647058823);
verifyAttribute(decoder, binary(
"7E0200008201215233475100030000000000000003015A7F6106CF8CEC003D0000000021071311481901040000005630011931011AE10200755D3D0601CC0024990A7dA0032301CC002499099B2941FC01CC002499099B29430B01CC0024990A7dA0290601CC0024990A7dA015FD01CC0026220994506BFFFE157C010400000001F10C000000000000000000000000997E"),