Commit 26ceff63 authored by rswindell's avatar rswindell
Browse files

Fixed bug in last commit (wrong variable name).

parent e7cd468c
......@@ -78,7 +78,7 @@ unsigned short crc16(char* data, unsigned long len)
unsigned short crc = 0;
unsigned long l;
if(len==0 && buf!=NULL)
if(len==0 && data!=NULL)
len=strlen(data);
for(l=0;l<len;l++)
crc = ucrc16(data[l],crc);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment