Skip to content

Commit

Permalink
Do not oversend data on transmit
Browse files Browse the repository at this point in the history
  • Loading branch information
mywave82 committed May 3, 2015
1 parent 73792c1 commit 26cb717
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions function.c
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,9 @@ int writeCom(unsigned char *data, int length)
0x301,
0,
data,
DATALEN,
length+8,
500);
if(recieve<0 || recieve!=DATALEN)
if(recieve<0 || recieve!=(length + 8))
return -1;
return length;
}
Expand Down

0 comments on commit 26cb717

Please sign in to comment.