Skip to content

Commit

Permalink
Fix for
Browse files Browse the repository at this point in the history
  • Loading branch information
rustam authored and mdovey committed Feb 3, 2020
1 parent 1e77efe commit 8553e78
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -599,7 +599,7 @@ protected static String calculateChecksum(String data) throws UnsupportedEncodin
checksum += b & 0xff;
}
checksum = -checksum & 0xffff;
return Integer.toHexString(checksum).toUpperCase();
return String.format("%1$04X", checksum);
}

protected String addChecksum(String command, Character sequence) {
Expand Down

0 comments on commit 8553e78

Please sign in to comment.