diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2017-08-26 09:41:37 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2017-08-26 09:41:37 +1200 |
commit | 819bca366f89f237f19e52b7a916895ed1761fb9 (patch) | |
tree | 40003114990615a08486b6a3906b9bb2798358f6 /src/org/traccar/protocol | |
parent | d5ad3af86c6faa5d45b8724219bf06cdd58e3eed (diff) | |
download | trackermap-server-819bca366f89f237f19e52b7a916895ed1761fb9.tar.gz trackermap-server-819bca366f89f237f19e52b7a916895ed1761fb9.tar.bz2 trackermap-server-819bca366f89f237f19e52b7a916895ed1761fb9.zip |
Decode negative temperature
Diffstat (limited to 'src/org/traccar/protocol')
-rw-r--r-- | src/org/traccar/protocol/Gl200TextProtocolDecoder.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/Gl200TextProtocolDecoder.java b/src/org/traccar/protocol/Gl200TextProtocolDecoder.java index 37793a6ff..3bee39cc4 100644 --- a/src/org/traccar/protocol/Gl200TextProtocolDecoder.java +++ b/src/org/traccar/protocol/Gl200TextProtocolDecoder.java @@ -614,7 +614,7 @@ public class Gl200TextProtocolDecoder extends BaseProtocolDecoder { for (int i = 1; i <= deviceCount; i++) { index++; // id index++; // type - position.set(Position.PREFIX_TEMP + i, Short.parseShort(data[index++], 16) * 0.0625); + position.set(Position.PREFIX_TEMP + i, (short) Integer.parseInt(data[index++], 16) * 0.0625); } } } |