SparkFun will be closed May 25, 2015 for Memorial Day. Orders placed after 2pm on Friday the 22nd will ship out on Tuesday. Thanks!
Frequently Asked Questions
Mon-Fri, 9am to 5pm
U.S. Mountain Time:
Chat With Us
May 24, 2013
about 2 years ago
I was looking through the source and think I found a problem with it, hoping someone can clarify.
line 167 - if(command_buffer_count == (2*MAX_COMMAND_LENGTH))return 0; //If the command is too long, exit the function
Are you not going to write passed the end of command_buffer and possibly overwrite something, if a command longer than MAX_COMMAND_LENGTH is accidentally sent
should it not be
line 167 - if(command_buffer_count == (MAX_COMMAND_LENGTH))return 0; //If the command is too long, exit the function
No public wish lists :(
Forgot your password?
No account? Register one!