Skip to content

Commit

Permalink
Fix for
Browse files Browse the repository at this point in the history
  • Loading branch information
rustam committed Jan 30, 2020
1 parent 8db66c4 commit 38e07f9
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 38e07f9

Please sign in to comment.