mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-08-08 02:28:59 +00:00
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 New Issue
Block a user