diff options
Diffstat (limited to 'src/org/traccar/protocol/KhdProtocolEncoder.java')
-rw-r--r-- | src/org/traccar/protocol/KhdProtocolEncoder.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/KhdProtocolEncoder.java b/src/org/traccar/protocol/KhdProtocolEncoder.java index ca2407743..a33fa34c2 100644 --- a/src/org/traccar/protocol/KhdProtocolEncoder.java +++ b/src/org/traccar/protocol/KhdProtocolEncoder.java @@ -38,7 +38,7 @@ public class KhdProtocolEncoder extends BaseProtocolEncoder { buf.writeInt(0); // terminal id - buf.writeByte(Checksum.xorChecksum(buf.toByteBuffer())); + buf.writeByte(Checksum.xor(buf.toByteBuffer())); buf.writeByte(0x0D); // ending return buf; |