added tiwrite command, split LF code from appmain into lfops.c
This commit is contained in:
1 parent
431ae7e0eb
commit
9bea179a71
8 files changed
+1136
-961
No files matched your search
+2
-2
@@ -1,4 +1,4 @@
|
||||
unsigned short update_crc16( WORD crc, BYTE c ) {
|
||||
WORD update_crc16( WORD crc, BYTE c ) {
|
||||
WORD i, v, tcrc = 0;
|
||||
|
||||
v = (crc ^ c) & 0xff;
|
||||
@@ -7,5 +7,5 @@ unsigned short update_crc16( WORD crc, BYTE c ) {
|
||||
v >>= 1;
|
||||
}
|
||||
|
||||
return (crc >> 8) ^ tcrc;
|
||||
return ((crc >> 8) ^ tcrc)&0xffff;
|
||||
}
|
||||
Reference in new issue
Block a user