CCITT_CRC.java Change line endings from CRLF to LF

and remove trailing whitespaces.
This commit is contained in:
Tommy Sparber 2015-10-29 15:35:47 +11:00
parent a5f21feb4f
commit d817540f19

View file

@ -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);