Merge pull request #1337 from tsparber/pr-ccittcrc-crlf
CCITT_CRC.java Change line endings from CRLF to LF
This commit is contained in:
commit
139f427458
|
@ -63,7 +63,6 @@ public class CCITT_CRC {
|
||||||
return bitrev(crc >> 8);
|
return bitrev(crc >> 8);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public int add(int data) {
|
public int add(int data) {
|
||||||
int newCrc = ((crc >> 8) & 0xff) | (crc << 8) & 0xffff;
|
int newCrc = ((crc >> 8) & 0xff) | (crc << 8) & 0xffff;
|
||||||
newCrc ^= (data & 0xff);
|
newCrc ^= (data & 0xff);
|
||||||
|
|
Loading…
Reference in a new issue