Skip to content

Commit

Permalink
Update crc16-ccitt.js
Browse files Browse the repository at this point in the history
  • Loading branch information
lampaa committed Jul 8, 2015
1 parent 7c8d8e7 commit 2c343ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crc16-ccitt.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
function CRC16_CCITT(charach){
var crc = 0xFFFF;
var polynomial = 0x1021;
var var i=0, k=0, byte_val, bit, c15;
var i=0, k=0, byte_val, bit, c15;

for (; i < charach.length; i++) {
byte_val = charach[i].charCodeAt(0);
Expand All @@ -30,4 +30,4 @@ function CRC16_CCITT(charach){
crc &= 0xffff;

return crc.toString(16);
}
}

0 comments on commit 2c343ee

Please sign in to comment.