From dfa728598edc0fd3ad495198c3b4666fc644d16c Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Wed, 23 Dec 2015 09:50:33 +1300 Subject: Fix hemisphere decoding for H02 protocol --- test/org/traccar/protocol/H02ProtocolDecoderTest.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'test/org') diff --git a/test/org/traccar/protocol/H02ProtocolDecoderTest.java b/test/org/traccar/protocol/H02ProtocolDecoderTest.java index cc4c47e66..8e0abac58 100644 --- a/test/org/traccar/protocol/H02ProtocolDecoderTest.java +++ b/test/org/traccar/protocol/H02ProtocolDecoderTest.java @@ -10,6 +10,10 @@ public class H02ProtocolDecoderTest extends ProtocolTest { H02ProtocolDecoder decoder = new H02ProtocolDecoder(new H02Protocol()); + verifyPosition(decoder, buffer( + "*HQ,4210051415,V1,164549,A,0956.3869,N,08406.7068,W,000.00,000,221215,FFFFFBFF,712,01,0,0,6#"), + position("2015-12-22 16:45:49.000", true, 9.93978, -84.11178)); + verifyNothing(decoder, buffer( "*HQ,1451316451,NBR,112315,724,10,2,2,215,2135,123,215,2131,121,011215,FFFFFFFF#")); -- cgit v1.2.3